/plushcap/analysis/hasura/graphql2chartjs-realtime-charts-made-easy-with-graphql-and-chartjs

graphql2chartjs: Realtime charts made easy with GraphQL and ChartJS

What's this blog post about?

graphql2chartjs is an open-source tool that reshapes GraphQL data into a format compatible with ChartJS API. This makes building realtime charts as simple as making a GraphQL query. The tool works by generating ChartJS compliant data objects from your GraphQL response, allowing you to create various types of charts such as bar, line, doughnut, pie, radar, polar area, and area charts. It also supports scatter, bubble, and time series charts with different data inputs. To use graphql2chartjs, initialize it, add data from your GraphQL response, set the chart data, and optionally incrementally add data to an existing instance. The tool can also take a transformer function for adding custom properties to data points.

Company
Hasura

Date published
March 15, 2019

Author(s)
Rishichandra Wawhal

Word count
678

Language
English

Hacker News points
None found.


By Matt Makai. 2021-2024.