score:2
Accepted answer
according to documentation if you want to create a category scale
should work like this:
.....
scales: {
yaxes: [{
scalelabel: {
display: true,
labelstring: "ms"
},
ticks: {
beginatzero: true,
suggestedmax: 100,
}
}],
xaxes: [{
scalelabel: {
display: true,
labelstring: "sec"
},
ticks: {
beginatzero: true,
max: "a-value-from-array"
}
}]
}
i'm tempted to guess that you are using a notation like:
var y = { ticks.max: "hello" }
vm181:1 uncaught syntaxerror: unexpected token .
i think that explains your error.
Source: stackoverflow.com
Related Query
- PrimeNG/Chart.js - max Number of labels to show
- Limit labels number on Chart.js line chart
- Chart.js Show labels on Pie chart
- chart.js: Show labels outside pie chart
- Chart.js how to show cursor pointer for labels & legends in line chart
- Display a limited number of labels only on X-Axis of Line Chart using Chart.js
- Line chart with large number of labels on X axis
- ChartJS: Show all labels of a mixed chart in the tooltip
- PrimeNg bar chart how to show a label for the y-axis
- Show labels on each sector to polar chart using angular js chart
- ChartJS (React) Line Chart - How to show single tooltip with data and labels from 3 (multiple) dataset?
- Chart.js: How to get x-axis labels to show on top of bars in bar chart
- Inverting X axis number labels in chart.js scatter chart
- How to show the chartjs bar chart data values labels as text?
- how can i show labels and value in both on bar chart
- Char.js - How to show labels by default in pie chart
- Chart.js how to show line chart without displaying the labels on xaxis and yaxis
- How remove duplicates xAxis labels and show all values on chart
- Chart.JS: Show custom labels permanentely on doughnut chart
- How to show bar chart labels clearly using ChartJS?
- Chart js always show labels on a doughnut chart
- Show the latest labels in a bar chart with React.js using react-chartjs
- how to show X and Y labels on points in Chart js 2 Line Chart
- PrimeNg Pie Chart - By default show all tooltip?
- How to show labels above pie chart in chart.js
- ChartJS New Lines '\n' in X axis Labels or Displaying More Information Around Chart or Tooltip with ChartJS V2
- Set min, max and number of steps in radar chart.js
- Chart JS data labels getting cut
- Chart.js: only show labels on x-axis for data points
- How to display Line Chart dataset point labels with Chart.js?
More Query from same tag
- chartjs-plugin-annotation box in Django app
- Chart.js V2 line chart missing point
- Chart from chart.js to pdf
- Change background transparency of Chart.js chart
- Rendering charts using local Chart.js in overriding Django templates
- Javascript generate random color with equivalent highlight
- ChartJS display legend
- How can I make bar charts symmetrical in chart.js?
- Chart.js Line Graph: Start a line in the middle of a graph
- Animate datasets separately
- How can i launch a modal after clicking each bar in Bar chart in Chartjs and also how can i get its data?
- Chart.js same Y axis on left and right
- Page will not load and I get a "Newtown.json" warning message
- How can I assign dynamic data from service via subscribe to doughnut chart in angular?
- How to add background color between two specific lines in Chartjs 3.1
- How to create a chart.js scatter chart with data from two lists
- ChartJS time axis not plotting correctly | getting an hour instead of date
- Chart.js - barchart - plugin labels
- Update Chart js chart dynamically in angular 2 from data getting from nodejs service
- Chart js show data on hovering legend
- Update ChartJS line chart from DynamoDB query
- Chart JS 2 Tick Label Border
- Chart.js padding canvas
- what is output format of Utils? (using chartjs in vanillajs, not react/angular)
- How to create pdf file in node js
- ChartJS remove vertical grid lines one on two
- [Vue warn]: You may have an infinite update loop in watcher with expression "chartData"
- Chart.js - Line Chart format data to Lacs/Crores
- Edge does not set height on canvas properly
- Chart.JS Mixed Chart - Bars Not Showing