score:1
You can achieve something similar like in zones by adding a few series type scatter and connect them lineWidth.
For better clarity, to make the scatter plot look like a line, you can disable the point marker.enabled.
chart: {
type: 'scatter'
},
plotOptions: {
scatter: {
lineWidth: 2,
marker: {
enabled: false
}
}
},
series: [{
data: [{
x: 1,
y: 10
},
{
x: 2,
y: 15
}
],
color: 'red'
},
{
data: [{
x: 2,
y: 15
},
{
x: 3,
y: 25
}
],
color: 'blue'
},
{
data: [{
x: 3,
y: 25
},
{
x: 4,
y: 5
}
],
color: 'green'
},
],
Demo:
http://jsfiddle.net/BlackLabel/6f8noxLr/
API References:
https://api.highcharts.com/highcharts/plotOptions.scatter.marker.enabled https://api.highcharts.com/highcharts/plotOptions.scatter.lineWidth
score:0
Hi Shivabharathi Ponnuvelu, You can try with gradient I guess. https://jsfiddle.net/9L3f0w8h/29/
https://www.demo2s.com/javascript/javascript-highcharts-spline-chart-gradient-fill.html
lineColor: {
linearGradient: [0,0,0,1],
stops: [
[0, 'green'],
[0.5, 'red'],
[1, 'blue']
]
}
Is there any specific reason you want to use this without zones?
Source: stackoverflow.com
Related Query
- Angular - Highcharts - Color b/w points
- Highcharts - Change line color between points
- Can I color points in highcharts time series?
- Fill area beneath scatter points with color in Highcharts 3d scatter plot
- Highcharts - Change color of hover points
- Change color of marker on hover points - Highcharts
- How to show unique name of every points in highCharts using angular
- Change color of different points in same series Highcharts
- How to make color fill area between 2 points at HighCharts
- Angular Highcharts Wordcloud color array
- Highcharts displays series names but missing data points from json source
- Rendering Highcharts using Angular js Directives
- Highcharts 3 cannot render more than 1000 points in one series
- how to set the interval of points on Y - Axis highcharts
- Disable tooltip on certain points in Highcharts
- How to Format Highcharts dataLabels Decimal Points
- How to use highcharts with angular 5?
- missing value in highcharts line graph results in no line, just points
- Changing series color in highcharts dynamically
- Resize data points with highcharts
- How to change the text color in Highcharts
- Highcharts doesn't display series with lots of data points
- Highcharts area fillOpacity do not work when changing the color
- Highcharts Change Bar Color Based on Value
- Highcharts dynamically change bar color based on value
- Getting error while using highcharts in Angular 7
- How to convert datetime string to UTC to plot points on Highcharts
- How to convert datetime string to UTC to plot points on Highcharts
- Change Color of Volume Columns (High/Low) in HighCharts
- Change Highcharts Series color
More Query from same tag
- Highchart: Only show one series at a time
- Does manipulating a hidden DOM element affect performance?
- Dynamically added Highcharts series with min and max
- Highcharts changing data granularity in combined charts
- Highcharts multi-color line
- Format Highcharts y-axis labels
- How can I fix Highcharts error #13?
- Highchart negative time
- Highcharts: multiple heatmaps with shared color bar
- How to align two pie graphs (highcharts) next to each other
- How can I display legend in two columns in pie chart
- How to make the react-highchart line type stay fixed?
- Highcharts show x-axis with dates
- Highcharts-vue options as variable
- Error in highcharts-export-server with expressjs
- Custom buttons on Highstock not enabled
- Unable to plot dynamically updating y-values on Highcharts spline plot
- How do i change time on xasis on live chart with highcharts?
- High chart formatter not working on Highchart API
- Highcharts not displaying
- Animation for dynamically loaded new data with Highcharts
- Draw svg file on highchart or inside html tag
- Month wise category separation in Highcharts
- How to force the display of every labels on yAxis in a BarChart
- How to create highlight area under curve in high chart?
- Highcharts annotations text to print in graph
- Bootstrap on mobile device (not rendering causing hanging problems)
- Hide Heatmap DataLabels based on Condition
- iOS Integrating highcharts
- Reload chart data via JSON with Highcharts