score:10
You will most likely have to use the Highcharts renderer for this task, as what you want to do doesn't quite fit in with a grid, and doesn't quite fit in with plot lines.
I have made a very simple example, based on your code which shows drawing an arbitrary vertical line, in a hard-coded location. To achieve your goal you will have to calculate a few things, such as the x/y position for the start point of each line, and the height of the line based on that points value.
Here's a slightly different example with zIndex and a line as you actually want it, using the V
path command to draw a vertical line.
score:0
The solution is to include a new series with the type column
and add the same data to this serie than the other serie that includes the point.
{
/* Column type */
type: 'column',
name: '',
data: [],
color: '#ED1C24',
pointWidth: 2,
showInLegend: false,
states: { hover: { enabled: false } }
}
Use this JSFiddle as guide: http://jsfiddle.net/NDpu6/
score:2
If you want ony one line (and area starting from that):
xAxis:{
plotLines: [{
color: 'red', // Color value
//dashStyle: 'solid', // Style of the plot line. Default to solid
value: + new Date(), // Value of where the line will appear
width: '2' // Width of the line
}],
plotBands: [{
color: '#FFFAFA', // Color value
from: +new Date(), // Start of the plot band
to: +new Date()+1000*24*3600*30, //30 days
}],
}
score:3
Try this jsFiddle. From Highcharts API.
score:5
I think you might be looking for Plot Bands and/or Plot Lines.
Here's some more information:
http://www.highcharts.com/docs/chart-concepts/plot-bands-and-plot-lines
Source: stackoverflow.com
Related Query
- How to draw vertical lines on Highcharts graph?
- How to add vertical lines to graph with HighStocks or HighCharts?
- How to draw SVG lines inside HighCharts barcharts?
- How to draw a line on a highcharts graph from an AJAX call?
- Draw vertical line when two lines cross in Highcharts
- How to modify the code so that Highcharts graph does not cover fixed navigation bar at the top of the page?
- HighCharts - Angular, how to get y axis labels on the vertical lines drawn from x axis
- How to remove tick lines from secondary y axis in highcharts heatmap graph
- How to draw a vertical line on HighCharts?
- How to hyperlink bar graph in highcharts
- How to change graph colour above and below plotline in Highcharts
- How do I get the value of a highcharts graph point on mouseover?
- How to pass custom data into Highcharts graph click event
- How do I set highcharts line graph point colors to an array of colors?
- How to adjust the spacing of grid lines in highcharts
- Highcharts - How do I get dashed lines in legend
- Highcharts: How to provide a custom stack label in highcharts bar graph from within the stackLabel formatter?
- How to change area graph color above certain value in Highcharts
- How can I force ticks/grid lines on a Highcharts datetime X axis to arbitrarily line up with data points?
- How to draw a bubble map with longitude and latitude using Highcharts in react
- How To Call A Function To Make A Graph Using HighCharts in PHP
- How can I make a graph with highcharts from csv file?
- How do i add mouse wheel code in Angular2 highcharts in typescript
- how to display 2 same highcharts without duplicate the code
- How to draw two lines in HighStocks using candlestick with intraday
- Use ajax to draw graph dynamically using Highcharts
- Highcharts - How to draw Confidence Intervals
- how can i add in highcharts a different dashStyle just for a part of the graph
- HighCharts & MVC: How to load whole graph definition and data with JSON?
- How to use Highcharts React to create chart with multiple lines for same XAxis?
More Query from same tag
- Highcharts version 8.2.0 tilemap doesn't support "square" shape
- jQuery traversal to build array vs extra html output
- Highcharts legend is overlapping on to the graph area
- How to call a function after Highchart animation complete In Anguler?
- Use different markers in the same series of an irregular time highchart
- Is it possible to plot more than 35000 points in Highcharts
- Customize tool tip in highchart
- Highchairs fill in the inside of the chart on a different background color
- Updating highcharts dynamically with json response
- Open highcharts tooltip at a specific point - React typescript highcharts
- I want to add a line to each column in a Highcharts column chart
- How to change camera angle in highcharts 3d
- Highcharts (highstock) plotting incorrect date on x-axis line chart
- Coloring a region programmatically based by user selection with Highmaps
- How to add icon/svg/image on X-axis for bar graph onclick event using highcharts?
- Highcharts Text Bubble
- ToolTip in Highcharts
- Dynamically Transform Data with User Input (Highcharts, JavaScript,Django)
- Drag and drop plotline React-Highcharts
- Django Chartit graph not displaying. Jquery issue?
- Highcharts Network Graph Arrow Links
- Redraw Highcharts on Vuejs app
- Highcharts click events not firing when displaying multiple line series
- Highcharts click event should apply only on marker point
- Build highcharts from oracle with html, java, json
- How to get current drilldown's id in Highcharts
- How to place tooltip above point in highcharts x-range?
- How to add vertical (and horizontal) line in highcharts scatter plot
- rCharts - Data label for Highcharts bubble chart
- Highcharter Dependency Wheel not showing up?