score:3
Accepted answer
you can define the color for each point in your data array like this:
for(j=0;j<name.length;j++) {
var temp = {
x:name[j],
y:value[j],
color:color[j]
};
dataarrayfinal[j] = temp;
}
this expicitly sets the x, y and color attributes of each data point.
Source: stackoverflow.com
Related Query
- Pie chart Slice color Change Dynamically in Highcharts
- Highcharts - Pie Chart change slice colors dynamically
- Highcharts - change color while hovering over a slice in pie chart
- Highcharts - change pie slice color on existing chart
- Highcharts --- Change sliced color on drilldown pie chart
- Highcharts: Change color of Pie Chart section without slice animation
- Highcharts : Change spline chart color dynamically
- Highcharts - Pie chart Color for each slice
- Highcharts same legend color as of the pie chart slice color
- Highcharts Pie Chart Specify Pie Slice Gradient Color
- Highcharts same legend color as of the Pie chart slice color?
- Highcharts Pie Chart - slice color dependent of category
- Highcharts PIE chart series color doesn't change
- Highcharts dynamically change bar color based on value
- Highcharts pie chart dynamically changes size
- HighCharts Pie Chart - Add text inside each slice
- HighCharts Dynamically Change Chart Type
- Change color of area chart programmatically in highcharts
- highcharts: change color of pie slice on hover
- How to center chart title position dynamically inside pie chart in highcharts
- Length of slice in Highcharts pie chart
- Customise Highcharts Pie Chart Selection State so that slice does not animate out when selected
- HighCharts - Dynamically Change Axis Title Color
- Show tootip and select pie slice on legend click of pie chart in HighCharts
- Highcharts Pie Chart Slice Errors
- highcharts pie chart color for dynamic data
- Change line color in area-spline chart in Highcharts
- Change color of pie chart on drilldown
- How can I put custom color in High Charts PIE data | Slice and want to change slice text
- How to change color of bar in column chart with different level of percentage in highcharts
More Query from same tag
- HighChart HighStock Error: Invalid negative value for <rect>
- R highcharter plot points color based on value
- Display real time scale on xAxis
- HighChart : Usage of setData
- How to have multiple highcharts with different series data in vuejs without repeating code
- passing json values to highcharts from .net code behind
- YQL finance data JSON format for use with highcharts
- Real time chars using highcharts, JSON, REST and Spring MVC
- How to create india map chart using Hightcharts?
- HighStock setExtremes in angular HighStock
- if i have a data in highcharts greater then 1000 i want to display 1k
- Highcharts version 7.1.1 how to offline-exporting PDF with amd modules
- how to use Bootstrap font icons on x-axis lables in highcharts
- How to create monthly candlestick chart using daily data?
- How to set aria attributes to highcharts tooltips
- HIGHCHARTS - Jquery/Ajax access php variables from the php file called by ajax
- how to set the height of subtitle in highchart without defining height of the container?
- Highcharts sets default value for blank data
- Very Small Scale on Highcharts
- Highcharts drilldown chart: Display/Hide Plot Bands and Lines on drilldown or drillup
- Highcharts JSON formatting - splitting up and preprocessing data for charts?
- How to space columns in HighCharts
- How to add tooltip on the render image in highcharts?
- How to change Pie full donut to half donut in Highcharts?
- Highcharts column range change color for negative numbers
- Highchart donut pie - Is there a max number of slices
- highcharts JSON google earth
- One genral inquisitiveness about highcharts:
- Dynamically updating a highcharts object after data refresh in React
- Highcharts with yaxis max property doesn't hide plotbands and lables