by S M Zahed Kamal | Jul 22, 2021 | Javascript, How To
Today I’m going to share another snippet for Chart.js, that you can use to put a watermark image or logo in charts. To do that, I’ll create a small plugin. I’ll register the plugin globally to apply it on all charts. Though, you can apply it on chart...
by S M Zahed Kamal | Jul 22, 2021 | Javascript, How To
I was working on a tool where I needed to show Chart.js chart as image. I’m going to share a snippet to show I achieved it. Chart.js have an afterRender() callback function which is called after a chart has been completely rendered, including the animation....
by S M Zahed Kamal | May 28, 2021 | Javascript, How To
List.js is a tiny vanilla JavaScript library that adds search, sort, filters, and flexibility to plain HTML lists, tables, or anything. I’m going to share a snippet below to show how to use List.js to create an interactive HTML table similar to what jQuery...
by S M Zahed Kamal | Apr 11, 2021 | Laravel, PHP
Sometimes we want to show random data from a table. Eg. Showing 10 random blog posts from 1000s of posts. Showing 10 random questions from 100s of questions in a Quiz. Showing 10 random phone numbers from millions of phone numbers. I’m going to share a few good...