npm.io
5.0.0 • Published 2 years ago

onedionys-charting-library-integration

Licence
ISC
Version
5.0.0
Deps
133
Size
14 kB
Vulns
0
Weekly
0
Stars
31

Welcome to One Dionys - Charting Library Integration!

Functions for integrating graphics libraries such as Chart.js or D3.js into web applications.

Requirements

  • Web Browser - Can be used as an emulator to build applications. Example [Chrome, Firefox, Safari & Opera].
  • Internet - Because many use CDN and to make it easier to find solutions to all problems.

How To Use

Example Syntax
const integrateChartingLibrary = require('charting-library-integration');

// Sample data and options
const data = [10, 20, 30, 40, 50];
const options = { title: 'Sample Line Chart' };

// Render a line chart
const chart = integrateChartingLibrary('line', data, options);

// Access chart properties
console.log(chart.type); // Output: 'line'
console.log(chart.data); // Output: [10, 20, 30, 40, 50]
console.log(chart.options); // Output: { title: 'Sample Line Chart' }
Explanation
  • chartType: Type of chart to be rendered ('line', 'bar', 'pie', etc.).
  • data: Data to be visualized on the chart.
  • options: Options for configuring the chart (e.g., colors, labels, tooltips).
Return Value
  • type: Type of chart rendered.
  • data: Data used for rendering the chart.
  • options: Options used for configuring the chart.

Release Date

  • v1.0.0 : 08 March 2024
  • v1.0.1 : 11 March 2024
  • v4.0.0 : 11 March 2024
  • v4.0.1 : 12 March 2024
  • v4.0.2 : 18 March 2024
  • v5.0.0 : 31 March 2024

Author

License

  • Copyright 2024 One Dionys
  • One Dionys - Charting Library Integration is an open source project licensed under the MIT license

Suppport & Donation

Love One Dionys - Charting Library Integration? Support this project by donating or sharing with others in need.

Made with One Dionys

Keywords