score:0
Accepted answer
after a deep research:
var model = @html.raw(json.serialize(interventioncounter));
var monthlydata = [];
$.each(model, function (index, item) {
monthlydata .push(item.tostring());
});
then at the chartjs script:
data: monthlydata,
solved my question. i'm marking this answer in order to help others in the future.
Source: stackoverflow.com
Related Query
- I am using chart js to draw a chart. I did everything right but i don't know why the x axis and y axis label is not comming in chart. code below
- Using string list as Chart.js label
- X-axis multiple colored label for bar chart using chart.js
- Adding custom text to Bar Chart label values using Chart.js
- display vertical axis label in line chart using chart.js
- How to generate color code dynamically by swapping 2 characters within a string using PHP
- Custom label from using separate array in Chart JS
- How to change default label of each bubble in bubble chart using chartjs-plugin-datalabels
- Vertical stacked bar chart using SharePoint List
- Label issue in doughnut chart using chartjs
- Chart.js - Hide line using label string after load
- How to show symbols after the label and before the numeric value using chart.js Bar chart in Angular
- How to set Solid label in bar chart using Chart JS
- How to custom index label on each bar chart using chartjs?
- How to run Chart.js samples using source code
- How to add label square to Bar Chart using Chart.js
- I am Creating pie chart using Chartjs 2.6.0. I want to show label on Slices
- I am getting an issue my chart using chart.js is not appering until i tap 3 time on label button
- How to add text inside the doughnut chart using Chart.js?
- Chart Js Change Label orientation on x-Axis for Line Charts
- Converting Chart.js canvas chart to image using .toDataUrl() results in blank image
- Moving vertical line when hovering over the chart using chart.js
- create a multi line chart using Chart.js
- How to create two x-axes label using chart.js
- ChartJS - Draw chart with label by month, data by day
- Chart Js change text label orientation on Ox axis
- How to add an on click event to my Line chart using Chart.js
- Display line chart with connected dots using chartJS
- Dynamically update the options of a chart in chartjs using Javascript
- chart.js scatter chart - displaying label specific to point in tooltip
More Query from same tag
- Add padding between two y-axis scales using chart.js
- How to display stacked line chartjs
- How to set label in dataPoints chart on javascript?
- Chart.js Change color of the values *inside* the bars of a Bar chart
- Reverse tick order
- Chart.JS not working in Xpages, chart not defined errror
- How to edit the ID of each button in a class if a condition is true in JavaScript?
- Drawing a mixed stacked horizontal bar/line in chartjs
- ChartKick - ChartJs - Legend onClick override with default behaviour
- Creating mathematical charts using chart.js jQuery
- Is it possible to create different stepsize for different yAxis intervals on chartJs?
- Chart.js 2.0 - Tooltip is showing incomplete data on hover
- Chart.js Using A JavaScript Object
- Background color of the graph affects the other graphs too
- ChartJS: Show all labels of a mixed chart in the tooltip
- Chart.js Uncaught TypeError: Cannot read properties of undefined (reading 'options')
- Border radius for the bar chart in ChartJS
- Show statistics in my diagram (php mysqli)
- How to display label inside pie chart in Chartkick?
- Show count concatenated to labels using chart.js
- Chartjs show hidden data on tooltip
- How to show different product name for every bar in chart js
- Chart.js yAxes Ticks stepSize not working (fiddle)
- ChartJS Line Chart shoud not start at 0 with all Lines
- Chart.js color is not getting changed
- How to fetch data from DB on Chart.js using Laravel?
- Vertical scrubber line using chartjs
- special characters in title of charts of Charts Js
- Cannot read properties of undefined with react-chartjs-2 and chart js problem
- Char.js Interpolation linear