score:115
Accepted answer
Options can be set separately for each series.
var chart = new Highcharts.Chart({
chart: {
renderTo: 'container'
},
xAxis: {
type: 'datetime'
},
series: [{
name: 'John',
color: '#0066FF',
dashStyle: 'ShortDash',
data: [
[Date.UTC(2010, 0, 1), 29.9],
[Date.UTC(2010, 2, 1), 71.5],
[Date.UTC(2010, 3, 1), 106.4]
]
},{
name: 'Mary',
color: '#FF0000',
data: [
[Date.UTC(2010, 0, 1), 60.9],
[Date.UTC(2010, 1, 1), 40.5],
[Date.UTC(2010, 2, 1), 90.0],
[Date.UTC(2010, 3, 1), 80.4]
]
}]
});
score:11
If you read the api here, you'll see the following text.
Serie
The actual series to append to the chart. In addition to the members listed below, any member of the
plotOptions
for that specific type of plot can be added to a series individually. For example, even though a generallineWidth
is specified inplotOptions.series
, an individuallineWidth
can be specified for each series.
So you can add anything from plotOptions
.
Demo:
series: [{
name: 'serie1',
data: [0,1,2,3,4,5,6,7,8,9],
color: '#FFFF00',
lineWidth: 4,
id: 'serie1',
step: true
}]
Source: stackoverflow.com
Related Query
- HighCharts : Is it possible to customize the colors of individual series?
- Customizing the colors of individual series in HighCharts
- Highcharts - How to set custom colors for the series
- rCharts: Change the individual point colors of a time series plot (Highcharts)
- Highcharts - Is it possible to customize the bars in column range type?
- HighCharts - how to customize the tooltip for dynamically added series
- How to make the selection of individual series dynamic in highcharts even after setting max and min?
- Use different colors depending on the number of series - Highcharts
- HighCharts Hide Series Name from the Legend
- How can I change the colors of my highcharts piechart?
- Customize tooltip and format the number to 2 decimal places of highcharts
- Hiding a Highcharts series without using the legend
- Is it possible to position Highcharts dataLabels depending on the value?
- How can i hide all the Series in highcharts at a time
- Possible to connect the zoom on two Highcharts graphs?
- Add a gap between the second and third series in a Highcharts column plot with four series displayed
- Show specific series values in the stack label using highcharts
- Is it possible to hide the line & symbol next to Highcharts legend items?
- Is it possible to hide the navigator in highcharts at runtime?
- highcharts link series such that turn one off turns off the other
- How can I delete all of the points from a highcharts series
- Highcharts - Scatter chart with a line connecting the dots in the series
- Sort the series data for every X-Axis in Highcharts
- Is it possible in highcharts to have 2 charts, sharing the same x-axis, but next to one another?
- How do I style the series labels on a Highcharts pie chart?
- How to remove the halo/glow around a marker upon hovering a series in Highcharts
- Highcharts add tooltip that has a small arrow pointing toward the series
- How do I hide a Highcharts series from the chart, but always show it in the tooltip?
- How to customize the crosshair Line for Highcharts
- Highcharts Bubble Chart - How to move an individual point's data label (dataLabel) to the front/top
More Query from same tag
- How to show individual tooltips after loading a chart?
- Json to Chart using highchart export server with Node js module its throw error
- Making y axis of highcharts in time format hh:mm
- Highcharts JS- add third variable to tooltip for two series
- highcharts column chart with line, need line start at bar start
- Bubble Highmap using Lat Long
- Highcharts: Draw line from data markers to axis?
- How to resize this highchart graph?
- How can I force highcharts to show every x-axis label regardless of spacing constraints?
- Plot band not limited to xAxis, draws for the whole graph
- customize highcharts tooltip to show datetime
- How to skip one level of data in a sankey chart?
- Highcharts pie charts can have url links
- Dynamic Highcharts with maximum xaxis points
- Example for ShadowOptionsObject
- How can I prevent my HighChart bar chart from being inverted?
- Highcharts plotBand animation
- displaying highchart's graphic
- Simple, Open source PHP wrapper for Highcharts library
- Highchart Line chart – data series with multiple axis - 2nd series placed in the middle of X axis
- Highcharts Tootip in wrong location for multiple x axis
- Highstock doesn't show all data in serie
- Highmaps logo string rendering invalid copyright character
- HighCharts: Labels visible over tooltip
- Update chart after every array plot, Highcharts
- Using global data in High Charts point click custom function in R Shiny
- Highcharts line chart - do not display the line
- How to place 2 div one next the other one
- highchart print chart/chart context menu un-clickable
- highstock - control when tooltip appears