score:8
Finally I found an answer by my own: First, we have to set a div around the chartjs component, which is in this case. Then a little of css is needed. So it would be like this:
<div class="chartAreaWrapper">
<walking-speed-line-chart
v-if="chartElements1.dataCollectionLoaded"
:chart-data="chartElements1.dataCollection"
style="float: left" class="walking-speed-chart"></walking-speed-line-chart>
</div>
And corresponding css:
.chartAreaWrapper {
width: 80%;
overflow-x: scroll;
}
.walking-speed-chart{
margin-top: 20px;
height: 170px;
width: 1200px;
}
As you can see, you only need to set an overflow-x: scroll property in the container div of your component. Then just fix as much width as you want. Hope it helps!
Source: stackoverflow.com
Related Query
- Make y-axis sticky when having horizontal scroll on chartJS and Angular
- ChartJS - adding scroll to horizontal legend in Line chart
- Make x label horizontal in ChartJS
- How to fix chart Legends width-height with overflow scroll in ChartJS
- Horizontal scroll in vue-chartjs
- Horizontal bar with multiple sections in ChartJs
- How to draw Horizontal line on Bar Chart Chartjs
- Chartjs change horizontal axis value
- Can't apply options of datalabels chartjs plugin in Vue
- How to add ChartJS code in Html2Pdf to view image
- Vertical spacing in horizontal ChartJS Bar Graph
- ChartJs Horizontal line
- How do I add time sourced from an external source as an X axis to a ChartJS graph?
- Remove padding from chartJs horizontal bar chart
- Minimum value for x Axis doesn't work for horizontal bar chart | ChartJS
- ChartJS horizontal chart display legend on each bar
- Chartjs 3.x - How to duplicate X axis on both sides of horizontal bar chart with only 1 dataset?
- Chartjs not working with d3 from csv source
- Vue ChartJS is not updating
- Vue and Chartjs - Running a simple example of vue-chartjs
- Stacked Floating Horizontal Bar using ChartJS
- ChartJS not working in Vue
- ChartJS Horizontal bars barely visible with 50 records on the Y axis
- Se Chartjs horizontal
- Pause chart.js horizontal scroll
- How can I create a horizontal scroll effect with angular-chart.js and chart.js
- Implementing Data Decimation in vue chartjs
- ChartJS horizontal bar with numbers on both scales
- ChartJS 2.9.4 can't overlay line data on Horizontal Bar chart
- Can I use a custom data format when using Vue + Chartjs
More Query from same tag
- So, I'm fetching my data from phpMyAdmin MySQL to the chart.js, but I need it with AJAX, but how AJAX works with Chart.js?
- Using custom dataformat in chart.js for Multi Axis Line Chart
- Horizontal Bar-Chart - angular-chart.js
- How to add a second set of labels to a Chart.js doughnut chart?
- Rails 4.2 jQuery loads only after refresh
- Chart.js find visible data points following zoom
- How to Create Chart.JS Bar Graph with Min, Max & Average
- What is self.scale.endPoint chartJs v2.0?
- ChartJS padding from lines left and right
- create a chart.js point dataset from json
- How to disable canvas elements from hijacking mouse wheel when scrolling through a page?
- Single bar with background Chart.js
- ChartJS v2.6 update breaks custom line-with-area-range (stripe) chart
- updating chart.js in ractive
- Chart.js - Uncaught TypeError: Object.defineProperty called on non-object for multiple charts
- Chart.Js - Background Bar in Chart Bar
- refresh chart data every second javascript
- Can't bind to 'data' since it isn't a known property of 'canvas'
- NODEJS API: How to render .pug and send a AJAX response at same time?
- How to add datalabels to chartJS on Primefaces
- CakePhp3 - Showing values on ChartJs
- Building a 24h visualisation with chartjs
- How to get rid of axis lines in ChartJS?
- How do I use NuGet to install ChartJS?
- How to 1. pass two datasets and 2.have permanent label on charts in Chartjs
- How to implement doughnut ChartJS with CodeIgniter 3 and display data from database
- C# MVC5 JavaScript Chart.js Pie Chart with Realtime Updating from SQL Server Database without Refreshing
- break y axis in line chart chart.js
- Is there a way to highlight a line on a line graph with hover?
- How to work out Chartjs using TypeScript with Chartjs.definitelyTyped from github