ok i found a way to do it:
put the values in an array and get the highest value.
then if the highest value is 0, set
max: 10 in yaxes
if the highest value is greater than 0, then add 10 to the highest value, put it in a variable then pass it to
- Fix ChartJS Values not Well Displayed
- Chartjs - Donut Chart label for small values not visible
- Chartjs bar-chart does not render when values are equal
- Chartjs not working with d3 from csv source
- Chartjs - first x-axis tick is not displayed
- ChartJS chart not scaling after adding values
- ChartJS ticks values are not correct
- chartjs with the plugin chartjs-plugin-dragdata can i set fix dropdown values
- Using number/text input field to set the data values in ChartJs stops the chart from being displayed
- Tooltip is not displayed when using annotation in ChartJs
- My Chartjs is not updating after setstate full code attached Reactjs Update
- chartJS line chart not plotting values that are less than minY
- Dynamically update values of a chartjs chart
- ReferenceError: Chart is not defined - chartjs
- ChartJs title not showing
- Not drawing null values using chart.js
- How get sum of total values in stackedBar ChartJs
- ChartJS canvas not displaying rgba colors in IE, Safari and Firefox
- react-chartjs-2 with chartJs 3: Error "arc" is not a registered element
- TimeSeries scale in ChartJS 3.0.2. brings error "This method is not implemented: either no adapter can be found or an incomplete integration was ..."
- How to fix chart Legends width-height with overflow scroll in ChartJS
- Chartjs displays numbers not time
- show label in tooltip but not in x axis for chartjs line chart
- chartjs + Angular6 is not showing charts or any error
- Hide Y-axis labels when data is not displayed in Chart.js
- Display values outside of pie chart in chartjs
- chartjs-plugin-annotations not displayed in angular 5
- chartjs height does not follow parent container
- How to show data values or index labels in ChartJs (Latest Version)
More Query from same tag
- How to use vanilla js in reactjs to create a chart?
- Difficult displaying data with linechart in chart.js
- Chart.js compress vertical axis on barchart
- How to adjust axis width independently of gridLines lineWidth in chart.js graphs?
- Chart.js dinamically populate data in Oracle Application Express
- React: How to get loading spinner to show whilst API data loads into my chart.js chart
- Chart.js how set equal step size depending on actual data (xaxis)?
- How to reduce number of multiple gridlines in stack bar graph chart.js
- When I try to include the chart.js and angular chartjs files, I get: ReferenceError: require is not defined
- ChartJS: Show all labels of a mixed chart in the tooltip
- Chartjs - Stacked bar chart data order causes invisible other values
- Cannot read property 'map' of undefined when looking at an array with no index
- Mixed Chart calculating difference between two bars - ChartJS
- How to get the setState reassigned in react
- Bootstrap 3 tabs & Chart.js - charts not loading on tabs
- Chart.js plotting two json datasets on a line chart
- How can I calculate a value and place it inside the last bar in a Chart.JS bar chart?
- Creating a heart rate monitor
- Defining y-starting point for floating horizontal bar charts in Chart.js?
- How to make pie chart from array values?
- Chartjs tooltip out of page
- Create ticks at certain time positions on a chartjs cartesian time axis
- Update of options for PrimeNG Chart needs two calls instead of one
- Angular PrimeNG Chart Module: Customize hover text
- Parsing JSON data into specific format for chart.js
- TypeError: CanvasRenderService is not a constructor
- TypeError: Cannot assign to read only property ... - Editing react-chartjs-2 datasets with Redux
- Draw chart.js as svg
- Adding X axis title causes Uncaught RangeError: minimumFractionDigits value is out of range in Chart.js
- How to create a donut chart like this in chart.js