Тэги:
#how_to_change_the_font_color_of_the_x-axis_and_y-axis_in_chart_js #change_the_font_color_of_the_x-axis_and_y-axis_in_chart_js #font_color_of_the_scales_labels_in_chart_js #chart_js_tutorial #chartjs_3 #chart_js_3 #chart.js_3 #chartjs_3.6.0 #chart_js_3.6.0 #chart.js_3.6.0Комментарии:
Hi, How to change the color of the label on hover?
ОтветитьHello, thx for the video. Is there a chance to change the color for only a special value. i. e. the values are numbers from 1 to 10, and if the value is 7 it changes to red color for only this one value.
ОтветитьI want to color different at the same position on Y-axis. Ex: đ1,000,000 (¥303.03) with đ1,000,000 is blue and (¥303.03) is red. Can do that on chartjs? THank you.
Ответитьhi, is there any other alternative that isn't using coding?
ОтветитьHow to set the button to change the border-radius of the bars
ОтветитьThis video helped solved a problem I've been on for days. Such great content!
Ответитьhi...it's not working lol
ОтветитьThanks for the video this was great. Can we customize the axis? Maybe with a graphic or custom html? I need the axis to show bars of colour.
ОтветитьCurrently, when I add a custom x scale to scales:{}, it changes how the chart digests my datasets x values and completely messes up my lines.
My chart data object is like
chartData = { labels: yLabels, datasets: chartDataSets }
where yLabels is an array that sets labels for the Y axis. chartDataSets is an array of datasets where inside, the data is structured like so:
data:[{y: yValue, x: xValue}, {y: yValue2, x:xValue2}]
This configuration works without changing anything, I even have two custom y axis in scales{}. When I add anything to customize the x axis (say, I want to change the font size and font weight), my x axis loses all of the labels that were set by default in the data, puts it on a 1-10 scale, and all of my datasets are sandwiched between 0 and 1 on the x axis.
I have tried setting max and min values and stepsizes, but none of this works. It seems to really mess with how the x axis is constructed- only by trying to customize the labels. Is there already an answer you can point me to? Or a forum? Or is this a simple fix?
Thanks in advance
u really help. thank you so much
ОтветитьHello, this was really helpful. I would like to change colors of Y and X axes, when I activate Dark mode in my site. The problem is that text color get gray and we can see the content.
Thank for your help
How would we change the fontsize of y-axis? I have a graph were only every other bar is labeled. It is because the graph is smaller and it works fine when I make the graph bigger but I feel like if I change the y-axis label font size to little bit smaller, may be all the words would show up??
ОтветитьAnd thenx u are good work 🤘🤘🤘
ОтветитьGood my friend
ОтветитьThank you so much, You really make a great video .😊😊
Ответить