MPFlutterChart icon indicating copy to clipboard operation
MPFlutterChart copied to clipboard

LineDataSet right to left

Open m2faridi opened this issue 5 years ago • 6 comments

If we drag the line from right to left before our chart in OtherChartCombinedState ends, our line will be hidden

VIDEO https://streamable.com/6dbta

m2faridi avatar Feb 10 '20 10:02 m2faridi

Dude the link has a problem, let me fix for you: https://streamable.com/6dbta

crizant avatar Feb 11 '20 09:02 crizant

I can't see this video...

SunPointed avatar Feb 11 '20 14:02 SunPointed

https://vimeo.com/user108517719/review/390751772/c8b8468d11

m2faridi avatar Feb 11 '20 15:02 m2faridi

Did you see the video?  

m2faridi avatar Feb 14 '20 12:02 m2faridi

pls fix this bug

m2faridi avatar Mar 08 '20 12:03 m2faridi

I see the video but I can't reproduce the scene. I do like below, can you reproduce this by modify the combined.dart file, then I can try to fix it `void generateLineData1(LineData data) {

List<Entry> entries = List();

for (int index = 6; index < _count; index++)
  entries.add(Entry(x: index + 0.5, y: getRandom(15, 5)));

LineDataSet set = LineDataSet(entries, "Line DataSet");
set.setColor1(Color.fromARGB(255, 240, 238, 70));
set.setLineWidth(2.5);
set.setCircleColor(Color.fromARGB(255, 240, 238, 70));
set.setCircleRadius(5);
set.setFillColor(Color.fromARGB(255, 240, 238, 70));
set.setMode(Mode.CUBIC_BEZIER);
set.setDrawValues(true);
set.setValueTextSize(10);
set.setValueTextColor(Color.fromARGB(255, 240, 238, 70));

set.setAxisDependency(AxisDependency.LEFT);
data.addDataSet(set);

}

LineData generateLineData() { LineData d = LineData();

List<Entry> entries = List();

for (int index = 6; index < _count; index++)
  entries.add(Entry(x: index + 0.5, y: getRandom(100, 5)));

LineDataSet set = LineDataSet(entries, "Line DataSet");
set.setColor1(Color.fromARGB(255, 240, 238, 70));
set.setLineWidth(2.5);
set.setCircleColor(Color.fromARGB(255, 240, 238, 70));
set.setCircleRadius(5);
set.setFillColor(Color.fromARGB(255, 240, 238, 70));
set.setMode(Mode.CUBIC_BEZIER);
set.setDrawValues(true);
set.setValueTextSize(10);
set.setValueTextColor(Color.fromARGB(255, 240, 238, 70));

set.setAxisDependency(AxisDependency.LEFT);
d.addDataSet(set);

generateLineData1(d);

return d;

}`

SunPointed avatar Mar 12 '20 13:03 SunPointed