thekeenant / fcharts

:bar_chart: Create beautiful, responsive, animated charts using a simple and intuitive API.
https://pub.dartlang.org/packages/fcharts
MIT License
326 stars 46 forks source link

Color themes/auto colors #16

Open thekeenant opened 6 years ago

thekeenant commented 6 years ago

Colors must be manually specified for each element currently. It would be nice to have some sort of a theme object which colors refer to when they are not explicitly given a color. Any color could still be overridden, but the theme options object would be what developers would primarily use to customize colors.

thekeenant commented 6 years ago

Theme options would have a color provider (i.e. monochromatic or analogous or random?). A line would refer to that provider using its index in its list as the parameter.

A stacked, grouped bar chart would be one scenario where both a primary provider and a secondary provider may be necessary. A single stack may be composed of similar bar colors (monochromatic), but stacks may differ from one another (analogous). Line charts would just use the primary provider.

alexlovar commented 5 years ago

hi, how i do to change the color of the line, in linechart?

arthur109 commented 4 years ago

yeah, I cannot figure out how to change the color of the lines, but not the text or grid or scaffold, how would I do this?