menu
k_chart package
documentation
renderer/base_chart_painter.dart
BaseChartPainter
getX method
getX method
dark_mode
light_mode
getX
method
double
getX
(
int
position
)
根据索引索取x坐标
mPointWidth / 2防止第一根和最后一根k线显示不��� @param position 索引值
Implementation
double getX(int position) => position * mPointWidth + mPointWidth / 2;
k_chart package
documentation
renderer/base_chart_painter
BaseChartPainter
getX method
BaseChartPainter class