How to Customize Y Axis Ticks For Horizontal Bar Chart in Chart JS

preview_player
Показать описание
How to Customize Y Axis Ticks For Horizontal Bar Chart in Chart JS

In this video we will explore how to customize y axis ticks for horizontal bar chart in chart js. Customizing the ticks can be tricky but there is an easy but quite unknown way to do this.

We will use this build in feature that allows us the customize the y axis ticks easily.

Let's explore how to do this.

▬ Chartjs Source Code ▬▬▬▬▬▬▬▬▬▬

▬ Chartjs Viewers Question Series ▬▬▬▬▬▬▬▬▬▬

This is part of the Chartjs Viewers Question series. Where we answer viewer questions. This question was asked by one of our viewers.

▬ Materials/References ▬▬▬▬▬▬▬▬▬▬

To keep the video short we might expect you to know parts. These parts we have explained in other videos. You can find the references here below:

▬ Got a Question? Comment! ▬▬▬▬▬▬▬▬▬▬

Got a question or special request about a specific item? Comment below and tell me your question. I will make sure to follow up on you!

▬ Find Me Here ▬▬▬▬▬▬▬▬▬▬

Chart JS tutorials for Beginners:

Chart JS tutorials for Intermediate:

Chart JS Dashboard Series:
👍 Most Liked Video Series:

▬ About Us ▬▬▬▬▬▬▬▬▬▬▬▬

Why we created these #chartjs and #javascript video tutorials?

WHY
Creating charts in javascript is very rewarding but extremely challenging. The Chart JS library made it easier to render charts. However the chart js documentation is hard to understand for many. It requires a lot of different moving parts to work along. The canvas tag, javascript, arrays and Chart JS all need to be combined to draw an eye catching bar chart or line chart.

The videos explains the chart js documentation in a more visual and easy to understand way. You can follow along with the code and quickly grasp how it works. We cover the code in chart js but also what truly happens and why something happens when we write a line of code. This fundamental understanding gives clarity to you as a developer in chartjs. In short it is the Chart JS video documentation.

HOW
We answer questions from YOU (viewers) by creating an answer video that covers the questions YOU have posted in the comment section.

WHAT
Our goal is to help YOU learn how to draw charts in Chart JS by showing you in video format how to do it.

▬ Chart JS 3.9.1 ▬▬▬▬▬▬▬▬▬▬▬▬

Chart JS is a javascript library to draw charts in the canvas tag on your site. Presenting data in a visual manner such as charts is more effective and appealing. All the charts are always coded in the latest Chartjs version which is as of this recording Chart JS 3.9.1.

What type of charts can you make with Chart.JS?
With chart js you can make line chart, bar chart, pie chart, doughnut chart, scatter chart, polar area chart, radar chart, gauge chart and area chart. And with some clever tricks and visual adjustment more can be done.
Рекомендации по теме
Комментарии
Автор

Hi, great video
please help me, on y-axis. I'm having values like "50, 000, 789, 567". I want to remove the commas and print. How should I do it?
value should be "50, 000, 789, 567"

GONESRIRAM
Автор

Hi, nice video thank you.
How do I break the text if it is too large? Is there any option to set maxWidth, or textWrap?

NewtonJR
Автор

Hi excellent person, I've been trying to make a chord diagram using chart js for a while. Can you help a little? :), it looks like it can be done with Sankey and doughnut chart. Am I on the right track?

denizyldrm
Автор

hello, how can I change X Axis Ticks for Horizontal Bar Chart?

김진우-okk
Автор

Hi., I need to label the x-axis labels values as percentage., how to do that?

balajiprabhaharan
Автор

can we add color dots to y axis instead of text ??

testermobile