score:58
Accepted answer
okay, so i figured it out. it's the ticks
property i'm looking for...see code below.
see updated jsfiddle: https://jsfiddle.net/o534w6jj/1/
var ctx = $("#weekly-clicks-chart");
var weeklyclickschart = new chart(ctx, {
type: 'line',
data: data,
scalefontcolor: 'red',
options: {
scalefontcolor: 'red',
responsive: true,
tooltips: {
mode: 'single',
},
scales: {
xaxes: [{
gridlines: {
display: false,
},
ticks: {
fontcolor: "#ccc", // this here
},
}],
yaxes: [{
display: false,
gridlines: {
display: false,
},
}],
}
}
});
score:7
for anyone using chartjs v3+ you can try this.
options: {
...
scales: {
y: {
ticks: {
color: 'red'
}
}
,
}
}
Source: stackoverflow.com
Related Query
- Change color of X and Y axis values in Chart.js
- Change X and Y axis font color
- chartjs datalabels change font and color of text displaying inside pie chart
- Change Axis Line color in Chart created using chart.js
- Change label color Y and X axis chart.js
- Chart.js Change color of the values *inside* the bars of a Bar chart
- Change color of X axis values to multi color values - Chart.js
- 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
- Cannot change font color and box width in chart
- how to change the label color and set y-axis values 1k intervals and hide y-axis?
- Set minimum and maximum axis values on chart
- How to change bar color on a angular-chart and chart js bar graph with multiple datasets?
- Change Vertical Line and Color bar chart in bar chart.js
- Change the color of displayed values in pie chart
- In Chart.js set chart title, name of x axis and y axis?
- Chart Js change text label orientation on Ox axis
- Chartjs 2 - Stacked bar and unstacked line on same chart with same y axis
- Hide min and max values from y Axis in Chart.js
- Change point size and color on hover in chartjs
- Chart.js bar chart : Grid color and hide label
- Show X axis on top and bottom in line chart rendered with Chart.js 2.4.0
- Chart.js Timeseries chart - formatting and missing data values
- How to change the color of legend in chartjs and be able to add one more legend?
- How do I change the 'months' language displayed on the date axis in Chart JS?
- Chartjs change the specific label color in x axis in callback function
- How to hide the y axis and x axis line and label in my bar chart for chart.js
- Chart.js: How can a line series (out of many) change line color and thickness upon mouse hover?
- Show all values in Chart js y axis
- ChartJS click on bar and change it's background color
- chart.js bar chart color change based on value
More Query from same tag
- Chartjs: how to show only max and min values on y-axis
- Unable to get Line Chart tooltip on ChartJS
- Callback for v-show in vue.js
- how can I make selected data is highlighted on chart js?
- How do you disable tooltips in ember-cli-chart?
- Chart.js only appears randomly, and disappears on page refresh
- Is there any way to display float bar in chart.js?
- Chartjs Exporting ImageExports Empty Dark Image
- Unable to change y-axis value dynamically based on data for Stacked bar chart in reactjs
- Chart.js how to remove final label on chart
- Trying To Change only each Label's title in angular Chartjs
- return percentage in chart.js (v2+) legend
- Chartjs doughnut with multiple dataset issue in legend creation
- Using unknown number of datasets in Chart.js
- First point on scatter plot on JavaScript chart.js not showing
- Chart.js dataset controller 'null' when chart drawn
- Pie chart not working using angular and ng2-charts
- Extjs with Devexpress ChartJS
- JQuery Line Chart's X Axis not display in ASP.NET, C#, SQL Server
- ChartJS automatically scaled chart has undefined min and max
- Chart.js Example Code not working
- Chart.js responsive option - Chart not filling container
- How do I obtain a Chart instance for Chart.js
- Can't reuse a template in Vue.js
- vue-chartjs with chartkick vertical bar chart
- How can I sort, insert in between and update full dataset in chartjs?
- ChartJS: How to center monthly bars against a daily line chart?
- Unable to hide X-Axis in horizontal stacked chart.js
- Getting "undefined" trying to create a function
- Chart area background color chartjs