2024-07-17
2205
#react
Chinwike Maduabuchi
59209
Jul 17, 2024 ⋅ 7 min read

Using Chart.js in React

Chinwike Maduabuchi Software engineer who loves to write. Find me at https://www.chinwike.space/

Recent posts:

Exploring the new Chakra UI MCP Server

Discover how the Chakra UI MCP server integrates AI into your editor, reducing context switching and accelerating development by fetching real-time documentation, component data, and code insights directly in-app.

Emmanuel John
Oct 9, 2025 ⋅ 6 min read
Build AI Agent Without Langchain JS

LangChain.js is overrated; Build your AI agent with a simple fetch call

Skip the LangChain.js overhead: How to build a Retrieval-Augmented Generation (RAG) AI agent from scratch using just the native `fetch()` API.

Ikeh Akinyemi
Oct 9, 2025 ⋅ 3 min read
the replay october 8

The Replay (10/8/25): Data enrichment, CSS is back, TypeScript 5.9

Discover what’s new in The Replay, LogRocket’s newsletter for dev and engineering leaders, in the October 8th issue.

Matt MacCormack
Oct 8, 2025 ⋅ 30 sec read
Goodbye, messy data: An engineer’s guide to scalable data enrichment

Goodbye, messy data: An engineer’s guide to scalable data enrichment

Walk through building a data enrichment workflow that moves beyond simple lead gen to become a powerful internal tool for enterprises.

Alexandra Spalato
Oct 8, 2025 ⋅ 6 min read
View all posts

2 Replies to "Using Chart.js in React"

  1. You forgot to add some lines of code. Because of that I got some erros.

    We need to register the category scale so in order to achieve that,
    you to have include some imports and they are

    import {CategoryScale} from ‘chart.js’;
    import Chart from ‘chart.js/auto’;

    and then in the our app component do like this
    Chart.register(CategoryScale);

Leave a Reply