score:0
looks like i needed to create two individual instances per chart so i needed...
let chartconfig = {
type: 'scatter',
data: {
datasets: []
},
options: chartoptions
};
let chartconfig2 = {
type: 'scatter',
data: {
datasets: []
},
options: chartoptions
};
...
this.cpuchart = new chart(this.$refs.cpu.getcontext('2d'), chartconfig);
this.memorychart = new chart(this.$refs.memory.getcontext('2d'), chartconfig2);
i kinda see why but still feels kind of janky to me.
Source: stackoverflow.com
Related Query
- Why is ChartJS combining two charts?
- Why are these 2.9 ChartJS bar charts different?
- Why are my two charts repeating the same label?
- how to change thickness of two doughnut charts in chartjs
- Two chartjs charts on page throwing data undefined error
- How to 1. pass two datasets and 2.have permanent label on charts in Chartjs
- Combine two line charts into one in ChartJS
- ChartJS Line Charts - remove color underneath lines
- How to modify bar width in Chartjs 2 bar charts
- ChartJS - Donut charts with multiple rings
- chartjs + Angular6 is not showing charts or any error
- ChartJS and jsPDF - why the background is black?
- ChartJS Doughnut Charts Gradient Fill
- Chartjs Line Color Between Two Points
- Why isn't my Angular 4 ChartJS component rendering?
- Chartjs Nested Pie/Doughnut charts
- Draw two plots using chartjs over one another with transparency
- Is it possible to combine two Y axes into a single tooltip with ChartJS 2?
- Add zoom event handler to charts for chartjs with chartjs-plugin-zoom
- Chartjs hovering over one Chart, shows tooltip across all charts
- Update charts in chartjs and angular
- How do I make line charts overlay over bar charts in chartjs
- ChartJS charts not generating within tabs
- Why chart.js charts are not plotting data in Safari (works in Chrome)
- How to add background color between two lines in yAxis Chartjs
- How to add ChartJS code in Html2Pdf to view image
- Why is ChartJS skipping an xAxis label in this snippet?
- why is the background black when with Chartjs export to a image
- Why is borderColor function in chartjs running multiple times, and how to reduce it?
- Why would a ChartJS chart end up with width 0 and height 0?
More Query from same tag
- Chart.js - Creating multiple charts on one page
- Chart.JS canvas gets larger every time drawn
- Having issues with running npm start after installing chartjs
- Trying to insert another label for a piechart in ChartsJS
- Chart.js show x-axis data from right to left
- Chart.js: Can't get a coordinate for value for x axis unless x axis has the exact same value
- My canvas/graph jumps to left after creating the object
- How to disable canvas elements from hijacking mouse wheel when scrolling through a page?
- ChartJS AJAX Javascript
- ChartJS radar scale points
- Angularjs line chart get data from sql
- ChartJS horizontal label are 1-2px clipped
- Want to save chart.js charts to image using django cron job
- How can I change the cursor on pie chart segment hover in ChartJS 3?
- concatenate on tooltip from data array in chart js
- Hiding xAxis labels when using Chart.js
- Put the value into the doughnut chart
- Is there a way to have the tooltips always shown on a pie/doughnut in Chart.js v3?
- How to reduce the number of data points displayed in react-chart-js2 (data decimation)
- Passing JSON data from PHP array into ChartJS
- Laravel trying to display chart on welcome page
- Chartjs custom dynamic legend overflowing
- ChartJS : It's not showing in html on Django
- Unable to get Line Chart tooltip on ChartJS
- Change Angular js charts.js chart type dynamically
- Bar chart does not appear with Chart.js
- chart.js label color change based on value
- dynamic number of chart.js charts on the same page
- chart.js : Not all points use defined colors
- what is wrong with my code ? java script chart position