Highcharts - set colour scheme option depending on number of series
- or -
Post a project like this2304
$
- Posted:
- Proposals: 2
- Remote
- #1831194
- Awarded
Description
Experience Level: Entry
General information for the website: none
Description of requirements/features: Basically what I want to try and do is change the colour scheme of my theme of high charts depending on how many series there are. Is something like this possible to accomplish? Maybe something like this?
var colors = [];
var series = chart.series;
if (series == 2) {
colors = ['blue', 'red'];
} else if (series == 3) {
colors = ['blue', 'red', 'black'];
} else if (series == 4) {
colors = ['blue', 'red', 'black', green];
}
http://jsfiddle.net/tbo2o4Lm/
can you make it work on this?
Extra notes:
Description of requirements/features: Basically what I want to try and do is change the colour scheme of my theme of high charts depending on how many series there are. Is something like this possible to accomplish? Maybe something like this?
var colors = [];
var series = chart.series;
if (series == 2) {
colors = ['blue', 'red'];
} else if (series == 3) {
colors = ['blue', 'red', 'black'];
} else if (series == 4) {
colors = ['blue', 'red', 'black', green];
}
http://jsfiddle.net/tbo2o4Lm/
can you make it work on this?
Extra notes:
Alex C.
100% (11)Projects Completed
12
Freelancers worked with
12
Projects awarded
50%
Last project
23 Aug 2018
United Kingdom
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies