score:2
This might not be exactly what you want but you can just add another point at 2012
with the same value as 2011
and then another data point at 2012
will null
so it'll create a gap between 2012
and 2013
, although it will create a point at 2012
.
_this.lines.labels = [2010,2011,2012,2012,2013,2014];
_this.lines.data = [
[10, 5,5,null, 10, 5]
];
This would be the only change to your current code
Source: stackoverflow.com
Related Query
- Stepped line with null values in chart.js
- line chart with {x, y} point data displays only 2 values
- Is it possible to revert x-axe values in line chart with chart.js
- Chart js logarithmic line chart showing NaN values instead of null
- Force ChartJS to show Doughnut chart with null values
- Line Chart with null values: How to keep Lines connected?
- How can I create a horizontal scrolling Chart.js line chart with a locked y axis?
- Display line chart with connected dots using chartJS
- Chartjs 2 - Stacked bar and unstacked line on same chart with same y axis
- Chart.js - line chart with two yAxis: "TypeError: yScale is undefined"
- How to display Line Chart dataset point labels with Chart.js?
- Chart.js Mixed Bar and Line chart with different scales
- chart.js Line chart with different background colors for each section
- How do I draw a vertical line on a horizontal bar chart with ChartJS?
- How to display inline values in a stacked bar chart with Chart.js?
- Show X axis on top and bottom in line chart rendered with Chart.js 2.4.0
- Chart.js: Line chart with partial dashed line
- Obtain max value of y axis of line chart rendered with Chart.js
- ChartJS - Line Chart with different size datasets
- Line chart with large number of labels on X axis
- ChartJS - Line chart issue with only 1 point
- ChartJs line chart - display permanent icon above some data points with text on hover
- Drawing line chart in chart.js with json response
- Chart.js line chart with area range
- Extending Line Chart with custom line
- Can we draw a Line Chart with both solid and dotted line in it?
- Line ChartJS empty / null values doesn't break the line
- How to show data values in top of bar chart and line chart in chart.js 3
- ChartJS - how to display line chart with single element as a line? (not as a dot)
- ChartJS (React) Line Chart - How to show single tooltip with data and labels from 3 (multiple) dataset?
More Query from same tag
- How to use chart.js in blazor?
- Chart.js multiTooltip labels
- Datas put one on each other on chart.js
- charts.js layered donut pie chart
- How to decrease border width in any charts?
- How to disable canvas elements from hijacking mouse wheel when scrolling through a page?
- How to pass sql query data onto the datasets field of chartjs using nodejs (ejs)
- How could I put a string for the points on the x-axis?
- Count up values in Chart JS
- How to set axes' step size in Chart.js 2?
- Acceptable Range Highlighting of Background in Chart.js 2.0
- Error says Chart is not defined
- Add horizontal Line to my chart.js Barchart
- Chart.Js vers2 multiline to version 3
- Getting charts.js to read from Google Sheet JSON data
- chart.js show no charts in IE11
- Hiden Gridline in chart JS
- PrimeNg bar chart how to show a label for the y-axis
- Chart JS - Title missing when clearing canvas if no data is available
- Bug : Overlay loading automatically (bootstrap) (laravel 5.2)
- Rendering a chart.js component twice in a page
- Dynamically add x-axis in React using ChartJS
- Why is chartjs treating these arrays differently?
- How to set equal width between ticks - chartjs
- Chart.js Cannot read property 'fontSize' of undefined
- ChartJS: Full Date for xAxis Labels?
- How to make chartjs pie chart responsive
- How to load a chart in a diferent page
- Chart.js need to fix x axis number of vales
- How to add a point to chart.js line chart?