Ternary Operator JavaScript

The ternary operator is a shorthand way to write a conditional statement in JavaScript. It is also known as the ternary conditional operator. Ternary Operator JavaScript Here is the syntax for the ternary operator: The condition is evaluated first. If it is true, expression1 is executed. If the condition is false, expression2 is executed. The… Continue reading Ternary Operator JavaScript

Chart JS Axis Labels

Chart JS Axis Labels With Chart.js we can customize the axis labels. This can be very useful if we need to modify the text for better user experience. By default the ticks can values or string text. However, if we work with currencies we might want to add currency symbols such as a dollar sign… Continue reading Chart JS Axis Labels

Understanding difference between time and timeseries in Chart JS

In Chart.js we often have to draw charts with specific dates. If you are creating a stock market chart where your chart has data for the weekdays only you will have missing or static data the weekends and public holidays. This might be undesirable and you might want to remove those specific dates to keep… Continue reading Understanding difference between time and timeseries in Chart JS