score:8
there is no configuration option to do this. the difficult way would be, as you say, to implement it your self with help of the renderer.
you can configure individual points with color and size:
data: [{
x: 161.2,
y: 51.6,
marker: {
radius: 15,
fillcolor: 'rgb(255, 0, 0)'
}
}]
but the line that connects two markers do not have any individual settings.
score:3
there is a way to do this without using the renderer, however it is very much a hack.
the basic premise is that you can adjust the thickness of a line in highcharts after render time by manipulating the svg or vml attributes, and you can prevent highcharts from changing it back. therefore all you need to do is break up your series into two point series and chart them all at once. code below, fiddle can be seen here http://jsfiddle.net/39rl9/
$(document).ready(function() {
//define the data points
data = [
{x: 2,y: 4,thickness: 1},
{x: 7,y: 8,thickness: 8},
{x: 10,y: 10,thickness: 2},
{x: 22,y: 2,thickness: 10},
{x: 11,y: 20,thickness: 15},
{x: 5,y: 15,thickness: 2}
]
//format the data into two point series
//and create an object that can be put
//directly into the "series" option
var finalseries = [];
for (var i=0; i < data.length-1; i++) {
finalseries[i]={};
finalseries[i].data = [];
finalseries[i].data.push(data[i]);
finalseries[i].data.push(data[i+1])
};
//a function to change the thickness of
//the lines to the proper size
function changelinethick(){
var drawnseries = $(".highcharts-series")
for (var i=0; i < drawnseries.length; i++) {
drawnseries.eq(i)
.children("path")
.eq(3) //this could change depending on your series styling
.attr("stroke-width",data[i].thickness)
};
}
//define and render the highchart
chart = new highcharts.chart({
chart: {
renderto: "chart-container",
defaultseriestype: "scatter"
},
plotoptions: {
scatter: {
linewidth: 2
}
},
symbols: ["circle","circle","circle","circle","circle","circle"],
series: finalseries
})
changelinethick();
//prevent highcharts from reverting the line
//thincknesses by constantly setting them
//to the values you want
$("#chart-container").mousemove(function(){changelinethick()})
})
Source: stackoverflow.com
Related Query
- Highcharts scatter plot with variable line width
- Highcharts - connect points with a line in scatter plot on hover
- Highcharts scatter plot with lots of data points running really slow
- Highcharts - Scatter chart with a line connecting the dots in the series
- Highcharts shared tooltip for line series and scatter plot not working
- HighCharts scatter plot with Datetime on X Axis not plotting values correctly
- Tooltip in chart with line- and scatter plot in highcharts 3.0.7
- Highcharts - How to make a scatter plot with multiple series from HTML table
- Possible to use Highcharts Scatter Plot with categories?
- How to add vertical (and horizontal) line in highcharts scatter plot
- Fill area beneath scatter points with color in Highcharts 3d scatter plot
- Highcharts - Scatter plot single series with multicolor plots (points)
- Highcharts scatter plot with time only
- Highcharts plot offset on line graph with categories
- Find and fill intersection of line chart with plot line in highcharts
- Highcharts fill in scatter plot data with 0s
- from csv to scatter plot with HighCharts
- Rsquare best fit line in actual and precited scatter plot with d3.js/chart.js/highcharts
- Highcharts Single line series with single data not showing plot
- Highcharts cloud Scatter plot with data array
- Plot line is hiding behind trend in highcharts and movement of plotline is become very hindrance when loaded with very large data sets
- Highcharts column width with variable x axis point spacing
- Highcharts scatter chart with a name per point
- highcharts scatter with 4 quadrants
- Making a Highcharts plot with Python
- Add a gap between the second and third series in a Highcharts column plot with four series displayed
- Highcharts - best way to handle and display zero (or negative) values in a line chart series with logarithmic Y axis
- Stop HighCharts increasing width of line on hover
- Column width in Highcharts when combined with spline
- Highcharts - multiple plot with the same x scale
More Query from same tag
- Highcharts is not defined. Error log in console
- Highcharts creating series for column graph
- Get selected point(s) indices on zoom in Highcharts
- Exporting a highchart from the cmdline with phantomjs
- Highstock: set xAxis as not "datetime"
- Mult Serie Bubble Chart HighCharts
- How to show a loading state before show the complete page?
- Highcharts disable hover effect and select animation
- give highchart correct parametr from directive angularjs
- lineWidth on both sides of chart
- Highcharts shared tooltip for line series and scatter plot not working
- Why won't the legend in my highchart show values?
- rCharts highlight charts in shiny not working
- Highcharts js different when installed with bower
- destroy() called in ngOnDestroy throws Cannot read property 'forExport' of undefined
- How do I extend the bars across the axis?
- How to join geojson + CSV file with omnivore leaflet in Mapbox to map data as polygons?
- How to apply gradient using highcharts in a dynamic graph.
- Highcharts change or add color for name in a array of point.names and y
- Unpredictable behavior of y-axis labels of Highchart
- Highchart tooltip is not working when using it for date
- Highchart - how to control gap between series
- Navigator in HighStock chart doesn't work properly after drilldown
- Highchart Polar chart 2 nested circle
- How to apply borderRadius only for top side of Column or Bar in Highchart
- Labels are not rendering for plotLines highcharts
- Difference between hiding a div initially and hiding it dynamically
- Highchart Array From Ajax
- Error on rendering Highstock date
- Align DataLabels of Solidguage in Highcharts