score:1
Accepted answer
full details of all of the options are at https://www.chartjs.org/docs/latest/axes/styling.html.
the general form is something like this:
<%= line_chart chart_path(@obj),
code: false,
points: false,
min: 0,
max: 20,
colors: ["#0284c7", "#44403c"],
height: '105px',
width: '175px',
library: {
scales: {
x: {
display: false,
},
y: {
display: true,
font: {
size: 6,
weight: 100
}
}
} %>
the display attributes indicate whether to show the grid or not.
score:0
the problem was the cdn i found was out of date. with the cdn from jsdelivr the grid lines show up. the time scale formatting is different, but assume fixable. so the answer was right or on the right path. thank you.
Source: stackoverflow.com
Related Query
- Add Gridlines using ChartKick in Rails
- Rails dual axis using Chartkick and chart js
- How to run Chart.js samples using source code
- How to add text inside the doughnut chart using Chart.js?
- How to add an on click event to my Line chart using Chart.js
- How to add images as labels to Canvas Charts using chart.js
- How to add text in centre of the doughnut chart using Chart.js?
- Chart.js - Add text/label to bubble chart elements without using tooltips?
- Add chart using chart.js in codeigniter
- unable to add background color to the canvas using jspdf and chartjs
- How to add ChartJS code in Html2Pdf to view image
- How to add background color for doughnut mid using chart,js
- Using chart js version 3, how to add custom data to external tooltip?
- Add data to line chart using chart.js
- How do I add time sourced from an external source as an X axis to a ChartJS graph?
- Can't change labels' font color. Chartkick Ruby on rails
- how to add percentage value to legend field in pie chart using chart.js
- How to add text inside the doughnut chart using Chart.js version 3.2.1
- how to add a background that display "no data" on Canvas using ChartJS?
- How to generate color code dynamically by swapping 2 characters within a string using PHP
- Force display of ticks on xAxes using chartkick gem and chart.js
- How to only draw the graph and the Xaxis gridlines using chart.js
- In rails Label X and Y axis in chart. Implemented through chartkick and chart.js
- Using Chart.js onClick function, can you execute code from an undefined or null result?
- How to destroy a canvas using Id and add new canvas to the same id
- How to add an end line to my graph using Chart.js?
- How to remove the unnecessary overlaying gridlines using Chart.js?
- Add Horizontal crosshairs using Chart.js
- How to add text inside the doughnut chart using Chart.js AngularJS 2.0?
- How to add additional label in the middle of each bar using ChartJS
More Query from same tag
- Why don't my datasets show up on line graph using Chart.js?
- Issue While Passing Dynamic Datas in React Chart Js 2
- chart.js time scatter with true scale
- Chart.js – Line Chart Tooltip Labels
- Cannot use ng2-charts with Ionic 3 (ionic-angular 3.9.4)
- How to build dynamic charts with Chart.js
- React js with react-chart js, does not render doughnut chart
- Chartjs to show more set of data of click of a button
- ChartJS right Y-Axe ticks issue
- Canvas not working in jQuery Mobile
- [MIXED CHART.JS]How do I manipulate the label of each chart's tooltips?
- How do I customize the chart.js tooltip? Two labels have the same data, which I want to show you with each data
- Custom empty screen for ng2-charts
- Draw line between starting point and Ending point in semi doughnut chart in chart js
- How can i get my chartjs to show up graphically?
- How do I make my Type:Time to work with my Line Chart?
- Chart.js Polar Area Chart is not scale right
- ChartJs Scatter with Bars
- Chart.js - Changing value of hover labels
- chart.js line for only part of the labels
- How to navigate tooltips popup by clicking custom buttons outside Chart.js v2 canvas?
- When using chart.js to draw a line chart, if the peak is between two x values instead of "at a x value"
- ChartJs Force scatter plot to be square shaped
- Grouped bar charts each group different level in chart.js
- Error: "barWithErrorBars" is not a chart type. Vue - chartjs-chart-error-bars
- Changing Dataset for a chart in angular 10
- ChartJS dataset onclick deselect the rest
- change date format in tooltip of chart.js
- Using and reading a variable from Knockout.js in Chart.js
- Reloading ChartJs Image