score:1
Accepted answer
this is where you create your data array:
pnldata.push([
data[i][0], // the date
data[i][2] // cumulativepnl data[i][1] is the day's pnl
]);
you need to change from array to object, so you will be able to set individual color, for example:
pnldata.push({
x: data[i][0], // the date
y: data[i][2], // cumulativepnl data[i][1] is the day's pnl
color: 'somecolor'
});
Source: stackoverflow.com
Related Query
- set individual color for each bar in bar chart using highcharts
- Passing in Id for each data item in bar chart using highcharts
- HighCharts Create gradiance decress color to blur for each value on bar chart
- after using for loop all my column graphs are plotted in single color i need each bar in different color in highcharts
- How to set specific color for each data in pie chart using phplot.php
- Highcharts display label for pie chart using html table as data source
- Bar chart in High chart for indication of value with two colors in each bar where one color is always kept fixed
- Set Color for Pie Chart using HighChart + JSON data
- Cannot set bar chart width for specific data, Highcharts
- Unresponsive Script and/or high response time for bar chart using HighCharts
- Highcharts - Pie chart Color for each slice
- javascript - Highcharts - Type Bar - How to set different starting for each bar
- How can I put text within horizontal bar chart data points using Highcharts as well as adding text underneath each data point? Example below:
- Highcharts Set data label border color for each pie slice
- set different colors for each column in highcharts
- Highcharts percentage of total for simple bar chart
- Highcharts Bar Chart - How to set the minimum bar width/length
- Using PhantomJS to create HighCharts grahps server side for use in PDF creation (PHP) - results in exit code 11 from PHPs exec();
- creating a bar chart using Highcharts with React - getting an error that rendering div isn't found
- Color each point individually in column chart highcharts
- Rails generates chart for .each do |x| using highcharts or any other chart API
- Importing JSON file into Highcharts for Bar Chart Visualization
- HighCharts color on each - columnrange bar
- Splitted bar chart for paired data with highcharts
- Highcharts - In area chart how to use gradient color for multiple series?
- highcharts minPointLength do not work for unstacked bar chart
- Legend for each point in column chart in highcharts
- Set background color for only one pane in multi-pane Highstock chart
- Get the end points of each bar in a highcharts column chart
- How do I setup Individual Column color for each Column (HighStock/HighChart)
More Query from same tag
- Use exported data from Highcharts Editor in a new React chart
- Show Highcharts tooltip outside SVG container
- Highcharts combination chart from JSON data
- Highcharts read data from XML throught attributes
- using JS event function twice in shiny R to create a dropdown
- It is possible to make the preview/ slider/ navigator in Highcharts to match the graph?
- Getting information from one Rails server to Another
- Highcharts Gantt - Show Tooltip on Dependency Path Hover
- Adding null values to a pandas dataframe
- Highchart's Polar Chart: Apply Gradient Color on Intersecting Area Series
- How to update drilldown data in highchart without redraw the chart?
- How to get hovered date in Highcharts spline?
- HighCharts - Pie Semi Circle (Arrow in Chart)
- White lines between heatmap cells when zooming in (browser zoom)
- Remove border from multiple plots of Stacked and Grouped Column chart (Highcharts.js)
- Highcharter - move data label to top of column
- Change style for a specific tick in highcharts
- How to change Highcharts graph with HTML radio button input (JS/jQuery)
- Data is not fully shown in column chart chartkick and rails
- Passing variable into highcharts solid gauge
- Highcharts column drilldown, assign two different colours to the two different drilldown columns?
- Highcharts - Remove first marker from Area chart in every series
- AngularJS not loading directive correctly when using services
- How can I use highcharts draggable plotline as video timeline (vice versa)
- Highcharts datalabels Float Number including Zero after dot: x.0 not only x (exact decimals as in inputdata)
- Angularjs and Highcharts directive in Nested object
- Highchart Activity Gauge always display text in the center
- Highmaps isn't using a color gradient
- How to take the middle out of a highchart donut chart?
- Why Highcharts not returning the proper date?