Creating more than 3 lines with different styles in ChartView programatically #399
-
I am facing problem in adding more than 3 lineSpecs so that my chartView which is of line type can have more than 3 different lines.I can not do this programatically because i do not get the option of adding lines in the chartView object. Module
To reproduce Expected behaviour Android versions |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Hello! |
Beta Was this translation helpful? Give feedback.
Hello!
ChartView
is a host component. It doesn’t implementChart
. You can addLineSpec
s programmatically by using(chartView.chart as LineChart).lines
, wherechartView
is a reference to yourChartView
instance.