score:2
You can color parts of the graph if you point them in CSS. http://jsfiddle.net/0jsa3fw6/
JS:
$(function () {
$('#container').highcharts({
title: {
text: 'Monthly Average Temperature',
x: -20 //center
},
subtitle: {
text: 'Source: WorldClimate.com',
x: -20
},
xAxis: {
categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun',
'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
},
yAxis: {
title: {
text: 'Temperature (°C)'
},
plotLines: [{
value: 0,
width: 1,
color: '#808080'
}]
},
tooltip: {
valueSuffix: '°C',
enabled: false
},
legend: {
layout: 'vertical',
align: 'right',
verticalAlign: 'middle',
borderWidth: 0
},
series: [{
name: "Cost Estimate Today",
cls: 'costToday',
data: [1, 2, 3],
pointPadding: -0.05
}, {
name: "Cost Estimate Yesterday",
cls: 'costYesterday',
data: [10, 5, 8],
pointPadding: -0.05,
dashStyle: 'dash'
}]
});
});
CSS:
g.highcharts-series:nth-child(3) > path:first-child {
stroke: #e98300 !important;
}
g.highcharts-series:nth-child(1) > path:first-child {
stroke: #7ab800 !important;
}
Source: stackoverflow.com
Related Articles
- CSS Style not getting applied to a series in Highchart
- Column based Highchart drilldown series assign color code to each column
- highchart Customclass css not applied to tooltip for dumbbell series
- Highchart series style on button click
- Highchart - show / hide an y-Axis without hiding the series
- How to display highchart series line marker symbol from tooltip formatter?
- Highchart series update in javascript
- Reduce gap between series data in Bar Highchart
- Adding new HighChart Series
- Call an angular component method when we click on highchart series
- Highchart (Column Chart) : Few data labels are not appearing for a series
- Series markers disable on lines and enable on legend in Highchart
- Highchart data series filled with different colors
- Having trouble just getting the Highchart to show
- Hiding a highchart series is very slow
- How to change series legend text color in HighChart chart?
- Animated series in highchart
- How can I extend the lines of this Highchart series to the edges of my chart area?
- How do I style the series labels on a Highcharts pie chart?
- How to place labels on opposite Y axis in Highchart without a second series
- Columns HighChart remove spacing for empty data series
- Group series names in columns in highchart horizontal legend
- Show Highchart series horizontally below each other
- Several Series with the same xAxis data in HighChart
- Making a master-detail Highchart in Stackoverflow style
- Waterfall Highchart to start some of the columns in between the series with 0 y-axis
- HighChart hide other series on click legend
- HighCharts: Getting Y-Value in One Series Based on X-Value From Another Series
- How to set series-label to false by default and change the color of series label text in highchart
- Gauge chart Highchart dial style issue
- highcharts how to set y-axis index for series data(categories),not series(legend)
- Displaying highchart columnrange charting xAxis, yAxis and series
- How add custom content HighCharts PDF export?
- Highcharts 3D Scatter Plot: Change Description shown when hovering points
- Invalid dates in Highcharts with data loaded by JSON
- Highcharts , Types of property 'series' are incompatible
- simple Highcharts but doesn't run
- Highcharts How to change align of data labels based on value
- Is it better to update a Highcharts chart or destroy and recreate it?
- Highchart - show / hide an y-Axis without hiding the series
- How to generate multiple high charts in ng-repeat
- Highcharts - series order on stacked charts
- heroku does not load jquery on https
- Django and Highcharts - Generating charts, and still being DRY?
- How to hardcode chart data in my Model then have my Controller pull it from there to display it. Using Highcharts
- applying stock chart style in highchart
- Highcarts, removes html on categories
- Highstock align 0 values
- How to make highcharts scrollable horizontally when having big range in x-axis
- File loading a Csv file into highcharts