score:0
if you want to add scrollbar after a certain amount of data in chart.js. then you can use css to allow horizontal (overflow-x: scroll;) or vertical (overflow-y: scroll;) scroll.
<style>
.chartwrapper {
position: relative;
}
.chartwrapper > canvas {
position: absolute;
left: 0;
top: 0;
pointer-events: none;
}
.chartareawrapper {
width: 15000px;
overflow-x: scroll;
}
</style>
<div class="chartwrapper">
<div class="chartareawrapper">
<canvas id="chart" height="400" width="15000"></canvas>
</div>
</div>
for more example you can use - http://jsfiddle.net/rbdqxfzl/140
Source: stackoverflow.com
Related Query
- Chart JS - Make chart scrollable if too much data
- how to make a chart.js bar chart scrollable
- Make chartjs pie chart wiyh dynamic data
- How to make ng2-Chart Scrollable for large amount of data sets?
- how to make scrollable the legends of pie chart ( chart js )
- chart.js 2.7.1 - polar area chart has too much padding
- How do I destroy/update Chart Data in this chart.js code example?
- getting additional value fields from data source for dx.chartjs doughnut chart
- Chart.js how to make chart only show the most recent data
- how can I make selected data is highlighted on chart js?
- Cannot make my chart to work with data from mongoDB
- Chartjs Bar Chart showing old data when hovering
- Chartjs random colors for each part of pie chart with data dynamically from database
- How can I make two of my lines in Chart JS thicker
- Can't make chart js responsive
- ChartJS - Draw chart with label by month, data by day
- line chart with {x, y} point data displays only 2 values
- Chart JS data labels getting cut
- How can I make a stepline or stepped chart in chart.js or D3?
- Chart.js legend took up too much spaces
- chart js tooltip how to control the data that show
- Chart.js Timeseries chart - formatting and missing data values
- Chart JS show multiple data points for the same label
- Make pie chart smaller Chart JS
- Angular-chart.js - Make line chart does not curve
- Add all data in the tooltip of Chart JS
- How to display data labels outside in pie chart with lines in ionic
- ng2-charts customize data and whole html content of tooltip displayed when hovering on bar chart
- Show data dynamically in line chart - ChartJS
- Chartjs - data format for bar chart with multi-level x-axes
More Query from same tag
- Display point style on legend in chart.js
- cartjs tooltips displays in the wrong place on a chart
- Vertical stacked bar chart with chart.js
- Chart js: I'm getting the labels crossed on my pieChart and doughnut. Not able to get the chart itself
- charts.js data doesn't fit second y-axis
- How to export Chart.js chart using toBase64Image, but with no transparency?
- How to add links to chart.js (Doughnut Charts)?
- Chart.js - Define custom y-axis scale
- How do I change the interpolator used in Chart.js?
- Chart.js stacked line chart with differently styled sections
- Change axes position in line chart
- ChartJS not updating
- Chart.js Dynamically Updating Chart with X Axis Time
- cannot read property 'yyyx' of undefined
- Stacked bar chart results in misaligned bars
- chart js how do I only show just the low/high dots on line chart?
- ChartJS do not render any legend if the label is falsy
- Chartjs tooltip out of page
- Add information on y Chart Js
- Chart.js with dual axis on bar and line graph
- How to render a vertical line on hover in chartjs
- Chart.js not being displayed inside Jquery Dialog
- Looping through json array properties
- Chart.js Line chart Option does not disable gridlines
- Chartsjs only showing two data points
- Order and hide items of legend by value with Chartjs Angular
- Angular 5 and chart.js ts error
- Need some Help Regarding Chart.js
- Chart.js Bar and Line chart
- Razor chart.js labels/data not in sync