We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Based the JSON-based config tutorial, it looks like you can set a hard-coded list of colors globally for the chart: https://www.amcharts.com/docs/v4/concepts/json-config/#Structure_of_JSON_config
{ "colors": { "list": ["#ff0000", "#00ff00", "#0000ff" ] } }
There is also a documentation stating you can assign colors to the series: https://www.amcharts.com/docs/v4/concepts/colors/#Manually_setting_color_sets
{ // ... "series": [{ // ... "colors": [{ "#845EC2", "#D65DB1", "#FF6F91", "#FF9671", "#FFC75F", "#F9F871" }] }] }
Both cases don't override the default color set.
demo: http://jsfiddle.net/aq9Laaew/274847/
The text was updated successfully, but these errors were encountered:
Thanks for the heads up.
Looks like there are two issues: documentation is wrong and there's a bug that prevents it from working :)
I updated the docs. It should say this:
{ // ... "series": [{ // ... "colors": { "list": [ "#845EC2", "#D65DB1", "#FF6F91", "#FF9671", "#FFC75F", "#F9F871" ] } }] }
Also, fixed bug in dev version. New version will be released within 1-2 days.
Will ping you once that happens.
Sorry, something went wrong.
Fixed in 4.0.0-beta.85.
"ready"
Sprite
"init"
Container
system.isPaused
true
ErrorBullet
error-chart
xy-error-chart
cursorOverStyle
cursorDownStyle
ColorSet
baseColor
list
labelled-by
Label.wrap
Animation
"animationended"
Full change log.
Make sure you clear your browser cache after upgrading. And feel free to contact us again if you are still experiencing this issue.
martynasma
No branches or pull requests
Based the JSON-based config tutorial, it looks like you can set a hard-coded list of colors globally for the chart: https://www.amcharts.com/docs/v4/concepts/json-config/#Structure_of_JSON_config
There is also a documentation stating you can assign colors to the series: https://www.amcharts.com/docs/v4/concepts/colors/#Manually_setting_color_sets
Both cases don't override the default color set.
demo: http://jsfiddle.net/aq9Laaew/274847/
The text was updated successfully, but these errors were encountered: