score:13
Accepted answer
Use plotBands
Example:
$(function () {
$('#container').highcharts({
chart: {
},
xAxis: {
plotBands: [{ // mark the weekend
color: '#FCFFC5',
from: Date.UTC(2010, 0, 2),
to: Date.UTC(2010, 0, 4)
}],
tickInterval: 24 * 3600 * 1000, // one day
type: 'datetime'
},
series: [{
data: [29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4],
pointStart: Date.UTC(2010, 0, 1),
pointInterval: 24 * 3600 * 1000
}]
});
});
score:1
yes you can go with plot bands
xAxis: {
plotBands: {
from: fromDate,
to: toDate,
color: color
}
}
score:3
plotBands are what you need to accomplish this:
http://api.highcharts.com/highcharts#xAxis.plotBands
using the example you posted:
http://jsfiddle.net/jlbriggs/tv5cN/
plotBands:[{
from:Date.UTC(1971, 0, 8),
to:Date.UTC(1971, 2, 15),
color:'rgba(156,156,156,.25)'
}]
Source: stackoverflow.com
Related Query
- Highcharts - change background color along specific date range
- Highcharts column range change color for negative numbers
- Highcharts Change Bar Background Color Based on categories value
- Highcharts change the line color if its out of the area range
- How do I change a specific bar color in Highcharts Bar Chart?
- background color change in jquery highcharts
- Change background color on HighCharts
- Is is possible to change line color in highchart xy plot for specific y range only?
- How can I change the background color of horizontal bar if date value is less than to current date?
- Change background color of highcharts on hover
- How to change the text color in Highcharts
- Highcharts Change Bar Color Based on Value
- Highcharts dynamically change bar color based on value
- Change Color of Volume Columns (High/Low) in HighCharts
- Change Highcharts Series color
- Highcharts - Highlight / Shade date range
- Change color of area chart programmatically in highcharts
- Highcharts Change column color on hover
- Change Y Axis vertical line color in Highcharts
- Highcharts - how to disable color change on mouseover/hover
- Is it possible to change background color of highcharts?
- Make Highcharts border color match background color on column chart
- Highcharts - change color of only clicked column
- How to change Highcharts xAxis label color individually?
- Background color to highcharts
- Highcharts x axis date full range even if there is not enough data
- How do I set the background color of a Highcharts HTML label?
- How to change area graph color above certain value in Highcharts
- Highcharts hide series without change legend color
- Highcharts --- Change sliced color on drilldown pie chart
More Query from same tag
- Highcharts pie/bar combo. How to load json and how are the data series expressed
- Highmaps redraw bug after update points (with enabled zoom)
- Switching position of checkbox and title of serie
- create link for any element in categories Highcharts widget
- How would I overlay a scatter plot on a mirrored bar chart in Highcharts?
- Custom Marker (Rectangle with rounded corner) for highcharts scatter graph
- HighCharts - Permanent tooltip on solid gauge
- Highcharts Export Service Gantt Chart not working
- In highchart how to show y axis values in reverse order
- How can i export row data from highchart to excel file and not csv?
- Dotnet highchart visible attribute
- Highcharts: scroll for text area inside highcharts container; custom table inside highcharts container
- Highcharts Time Series data from C# in a format required by HighCharts
- How do I pass a PHP variable from one file to another multiple times?
- Show more data on Gauge chart with Highcharts
- Highcharts connected mappoint with "direction"
- Highcharts, Safari 6 and the curious case of the vertically aligned bar chart
- Why is the data showing up incorrectly in the chart?
- Highcharts xAxis shows labels from drilldown on drillup
- Define yAxis value with two different yAxis scale highcharts
- How do I make some columns in a chart stack while keeping others separate?
- Highcharts pie chart size doesn't fill smaller containers even with dataLabels disabled
- How to set Chart Size in Android Using MPAAndroid
- Unbind the Click Action on xAxis Labels In Drilldown
- How to automatically download png file from highchart when the page load
- RoR, Javascript - how to automatically update charts from table?
- Always show "0" value in Stacked Column Chart
- Donut Chart : Trigger legend or pie click event while selecting outside filter state change
- Export Jquery chart to csv,pdf and excel
- Highcharts - dynamic data label positioning on multi series doughtnut charts