Skip to content

Gifted charts diaries (notes from the author)

Abhinandan Kushwaha edited this page Dec 27, 2024 · 4 revisions

The origin and evolution of Gifted Charts

Gifted Charts originated as an experimental proof of concept (POC) aimed at crafting charts for React Native with specific features that were not viable using contemporary libraries. The library garnered praise from the developer community for its simplicity and extensive customization capabilities. The influx of feature requests and suggestions from enthusiastic developers contributed to the library's evolution into one of the most robust charting tools in React Native. Over time, the library matured like fine wine, growing stronger while maintaining its simplicity and intuitiveness. It represents a refined fusion of native UI elements and SVG, harnessing seamless animations and interactions from native components while employing SVG for chart rendering.

Soon, the community expressed a clear desire to extend the library's compatibility to ReactJS for web applications, marking the inception of the next chapter: react-gifted-charts.

To leverage the existing infrastructure and logic from react-native-gifted-charts, I abstracted the mathematical and logical components into a separate library named gifted-charts-core. This core functionality could now serve both React and React Native environments. Additionally, I ensured that the code for rendering charts on the web should be the same as that of mobile applications.

Gifted charts architecture

To know more about the architecture and working of the library read the dev docs here

Gifted Charts thus became the pioneering charting library capable of rendering native charts for both mobile and web platforms using identical code. Primarily designed for mobile applications, it guarantees uncompromised quality and smoothness in chart rendering on mobile devices.

Currently, the web framework, React Gifted Charts, is available as a beta release. I would suggest against using React Gifted Charts for web applications unless it is complemented by a mobile app or with future mobile integration plans. Superior charting libraries exist for web development. Gifted Charts shines brightest in mobile projects or endeavours spanning both mobile and web platforms.

Clone this wiki locally