Skip to content
New issue

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

Unable to change graph colour #59

Open
pramod1221 opened this issue Mar 22, 2017 · 0 comments
Open

Unable to change graph colour #59

pramod1221 opened this issue Mar 22, 2017 · 0 comments

Comments

@pramod1221
Copy link

Unable to change colour of graphs from the default one by passing the colour array as options.
Started working after adding color:config.color in this block. Can you please add this option and push an update for everyone to use?

var options = {
title: util.getTitle(data, config, type),
tooltip: util.getTooltip(data, config, type),
legend: util.getLegend(data, config, type),
toolbox: angular.extend({ show: false }, angular.isObject(config.toolbox) ? config.toolbox : {}),
xAxis: util.isHeatmapChart(type) ? config.xAxis : [ angular.extend(xAxis, util.getAxisTicks(data, config, type)) ],
yAxis: util.isHeatmapChart(type) ? config.yAxis : [ yAxis ],
graphic: config.graphic && (angular.isObject(config.graphic) || angular.isArray(config.graphic)) ? config.graphic : [],
series: util.getSeries(data, config, type),
visualMap: config.visualMap ? config.visualMap : null,
color:config.color
};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant