score:19
The highcharts API has two examples for the connectNulls
property: one for true
, and one for false
.
http://api.highcharts.com/highcharts#series.connectNulls
The true
example: http://jsfiddle.net/gh/get/jquery/1.7.1/highslide-software/highcharts.com/tree/master/samples/highcharts/plotoptions/series-connectnulls-true/
A snippet from the true
example:
plotOptions: {
series: {
connectNulls: true
}
},
The false
example: http://jsfiddle.net/gh/get/jquery/1.7.1/highslide-software/highcharts.com/tree/master/samples/highcharts/plotoptions/series-connectnulls-false/
A snippet from the false
the example:
plotOptions: {
series: {
// connectNulls: false // by default
}
},
The default of false
is a thoughtful choice, because when you connect values when there is no data, the results can lead to false assumptions on the part of the viewer of the chart.
UPDATE
Here's a Highstock example:
$(function() {
window.chart = new Highcharts.StockChart({
chart : {
renderTo : 'container'
},
rangeSelector : {
selected : 1
},
title : {
text : 'AAPL Stock Price'
},
series : [{
name : 'AAPL',
connectNulls: true,
data : [
[1112832000000,43.56],
[1112918400000,43.74],
[1113177600000,41.92],
[1113264000000,null],
[1113350400000,null],
[1113436800000,37.26],
[1113523200000,35.35],
[1113782400000,35.62],
[1113868800000,37.09],
[1113955200000,35.51],
[1114041600000,37.18],
[1114128000000,35.50],
[1114387200000,36.98],
[1114473600000,36.19],
[1114560000000,35.95],
[1114646400000,35.54],
[1114732800000,36.06]
],
tooltip: {
valueDecimals: 2
}
}]
});
});
Source: stackoverflow.com
Related Query
- Connecting NULL points in Highstock charts
- Strange character in the Highstock source code
- HTML table as data source for highstock charts using highcharts
- HighStock Charts not Working over SSL ie https
- Server-Side HighStock charts generation with NodeJS
- Highstock vs Google Charts in Performance
- Connecting two points in a graph
- highcharts with null data points
- Multiple series in HighStock charts
- How to load 60,000 data points without datagrouping in highstock chart?
- Using connecting legends for two Highcharts pie charts
- Synchronized charts example with Highstock crashes with "Cannot read property 'category' of undefined"
- Highstock / Highcharts dataGrouping points outside of viewport / canvas
- Make Highchart and Highstock Have a Uniform Time X-Axis for Disparate Data Points
- Use of DotNet HighCharts dll to make charts in code behind
- Why highstock charts have two yAxis?
- Highstock add points to dynamically added series
- Multiple highstock charts on one page
- Highstock charts - change position of rangeselector From and To inputs
- Highstock - How can i display the open, high, low, close in the line or area charts tooltip
- Highcharts - How do I keep both line points in from splitting between the two bar charts
- highstock - adding annotations with over 1000 points
- Preserve time spacing ratio of gaps in Highstock charts
- Highstock scroll bar-Single scroll bar for 4 charts
- Highstock charts give "Uncaught TypeError: Cannot read property 'addPoint' of undefined" error
- Highstock points don't align with tick correctly
- Highstock charts error: this.labelBBox is undefined line 30
- Highcharts - Highstock chart showing double line on hovering data points to show tooltip
- Set a maximum for data grouping in Highstock charts to prevent from grouping
- Highcharts Synchronized charts with missing data points
More Query from same tag
- Highchart doesn't display selected data properly
- Possible to create a dual y axis chart but where the secondary y series is using a secondary x axis?
- Highcharts multiple series combined with linkedTo hover issue
- highcharts graph with one regular column and one stacked column
- Highcharts and JSON
- Can I make a custom tooltip on a highcharts drilldown?
- Double X-axis within same Highchart object
- Is a Highcharts heatmap possible with a datetime axis, in a single row?
- Customize Highchart Map's legend type and color
- How to remove From and To filters from highstock?
- Json in perfect form but Highcharts chart won't populate
- Highcharts-limit display of categories
- Remove Tooltip in Synchronized Charts, When user leaves the chart area
- Highcharts's pie chart minSize option not working
- How to Control Padding Space Between X Axis Data Points
- Multiple series data on HighCharts column
- Highcharts - Force Categories in x-axis to be shown, even without data
- Highcharts don't hide categories labels on overflow
- Can we show the text in bar of timeline chart?
- Highcharts multiple data points between xAxis
- HighChart Boost Module in highmaps not working
- Highcharts - Get x Value From Y value
- Highcharts get additional info in tool tip form JSON object
- How can i keep the color the same in highcharts
- Issue Converting Highcharts to 24 hours format
- How to automatically download png file from highchart when the page load
- Issue with tooltip on Highcharts with multiple series added dynamically
- Highcharts - hold relation among multiple series after grouping / approximation
- How can you align the left and right Y-axes of vertically stacked HighCharts charts?
- "viewFullscreen" menu item is not showing in the context menu of highcharts 6.2.0