ChartsOrg / ChartsOrg/Charts

Setting a linechartdataset as a cubic line breaks line color array property

Open
#761 4 comments 0 reactions 0 assignees View on GitHub
feature
Dominant language
Swift
Stars
28k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

If you have a line chart data set and set the color array, each line segment will have a different color if you are using ChartColorTemplates.vordiplom;
This seems to only work if the line is not a cubic line. When the linechartdataset is a cubic line, colors doesn't work and only one color shows up for the whole line.
In the screenshot below, the first line is a noncubic line with colors changing and the second is a cubic line with only one solid color.

LineChartDataSet *set1 = [[LineChartDataSet alloc] initWithYVals:value label:@"text"];
set1.colors = ChartColorTemplates.vordiplom;

![image](https://cloud.githubusercontent.com/assets/280426/13124958/2a68291e-d591-11e5-93b6-2f6c26a1981b.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.