score:1
Accepted answer
you need to pass scales
in the options:
...
<div class="small">
<line-chart :chart-data="chartdata" :options="options"></line-chart>
<button @click="filldata()">randomize</button>
</div>
...
data() {
return {
chartdata: null,
options: {
scales: {
yaxes: [
{
stacked: true
}
]
},
},
}
},
Source: stackoverflow.com
Related Query
- Unable to Construct Stacked Vue-ChartJS Line Plot
- Chartjs 2 - Stacked bar and unstacked line on same chart with same y axis
- Adding line over stacked line chart with ChartJS
- plot a point on top on line chart in chartjs
- Plot Multiple Line Chart in Ionic 3 with ChartJS
- add shadow for line in vue chartjs
- Chartjs backgroundColor for line chart does not appear in Vue app
- Unable to plot JSON to chartJS
- Draw stacked horizontal bar chart with Average line using ChartJS
- Chartjs - Shift line plot to the right?
- plot line graph in Chartjs 2 when number of data in yaxis is not eqaul to number of data in xaxis
- How to display stacked line chartjs
- ChartJS incorrect plot when plotting multiple line charts in one graph
- Unable to get Line Chart tooltip on ChartJS
- Show and plot zero values on ChartJS line graph when no data
- ChartJS Line Charts - remove color underneath lines
- Chartjs change grid line color
- Chartjs Tooltip Line Breaks
- Chartjs v2.0: stacked bar chart
- Chart.js - Plot line graph with X , Y coordinates
- Dotted Line in ChartJS
- how to plot multiple time series in chartjs where each time series has different times
- Display line chart with connected dots using chartJS
- show label in tooltip but not in x axis for chartjs line chart
- chartjs show dot point on hover over line chart
- ChartJS Line Graph - Multiple Lines, Show one Value on Tooltip
- Click event on stacked bar chart - ChartJs
- ChartJs line chart repaint glitch while hovering over
- Unable to parse color in line chart (angular-chart.js)
- Chartjs Line Color Between Two Points
More Query from same tag
- Chartjs annotations-plugin: Can I add multiple vertical lines to identically named x-axis labels?
- is there a way to call a Component's function from click function of Chartjs
- Adding reading off lines in ChartJS
- Chart.JS change Text Color
- Bar charts not getting displayed correctly when bar is below zero (chart.js)
- How to put rounded corners on a Chart.js Bar chart
- Issue loading chart.js zoom plugin with require.js
- ChartJS datasets with one data value
- ng2-charts\ng2-charts.js does not export ChartsModule
- Leaflet polygon display charts after click
- How to add dataset legend in chartjs tooltip
- Testing Chart.js with Jest/Enzyme - Failed to create chart: can't acquire context from the given item
- Chart.js doughnut canvas padding
- My chartJS axios.get is fired twice causing chart to render twice too and i don't know why. I'm using react-chartjs-2
- Chart JS version 3 not showing in pdf for engine wkhtmltopdf
- Angularjs lazy load chartjs when in another tab
- How to render tooltip text on a different div with Chart.JS
- Protractor - Get array from canvas attribute in Angular2 using ng2-charts/Chart.js
- Need Clarity on Chartjs - Asp.NetMVC or Vue-ChartJS -Asp.Net MVC
- Multiple Charts of the Same Type in ChartJS2 ReactJS - Buggy Tooltips
- Chart.js not working on my page?
- Which scenarios might make Chart.js's canvas element resize?
- Custom data in label on ChartJS pie chart
- Object is possibly 'null' react typescript
- Is it possible to avoid the shrinking of Chart.js pie charts when accompanied by labels?
- Vertical Line chart with ChartJS
- how to change radius in rg-gauge-chart in Angular
- Show only nth tick LINE on x-axis for Chart.js diagram
- Gradient line chart with ChartJS
- Change point style in Chartjs via external event