Skip to the content.

One-viz: AI-Powered, Framework-Agnostic Data Visualization

NPM Version License: MIT PRs Welcome Live Demo

A next-generation data visualization library designed to democratize data insights. One-viz delivers AI-powered, interactive, and framework-agnostic web components that work seamlessly in any modern web application.


Overview

One-viz bridges the critical gap between complex data analytics and practical, actionable business intelligence. In an era where data drives decision-making, One-viz provides an essential toolkit for developers and organizations to build powerful, intuitive, and interactive visualizations with minimal effort.

By leveraging modern web components, it breaks free from the limitations of traditional JavaScript frameworks, offering a truly universal solution that is both powerful and exceptionally easy to integrate.

The One-viz Advantage (Why This Matters)

This library is not just another charting tool; it represents a significant step forward in the field of data visualization and web development.

Visual Showcase

Here are a few examples of the charts you can create with One-viz.

Bar Chart Pie Chart
One-viz Bar Chart One-viz Pie Chart

Getting Started

  1. Install from npm:
    npm install one-viz
    
  2. Import the components:
    // Import all components at once
    import 'one-viz';
    
    // Or import individually
    import 'one-viz/dist/components/BarChart/OneVizBarChart';
    
  3. Use in your HTML:
    <oneviz-barchart
      title="Monthly Revenue"
      x-field="month"
      y-field="revenue"
    ></oneviz-barchart>
    
    <script>
      const chart = document.querySelector('oneviz-barchart');
      chart.data = [
        { "month": "Jan", "revenue": 15000 },
        { "month": "Feb", "revenue": 18000 },
        { "month": "Mar", "revenue": 22000 }
      ];
    </script>
    

For framework-specific examples (like React), please see our CONTRIBUTING.md.


API Reference

All chart components inherit from a base class and share a common set of properties, attributes, and theming variables.

Common Properties & Attributes

Property Attribute Type Description
title title String The main title displayed above the chart.
data N/A Array The array of data objects to plot.
xField x-field String The field in the data objects for the x-axis/categories.
yField y-field String The field in the data objects for the y-axis/values.

Common Theming (CSS Custom Properties)

You can style all charts by setting these CSS variables on the component or a parent element.

Variable Description Default
--oneviz-background-color The background color of the chart. #ffffff
--oneviz-title-color The color of the chart’s title text. #333333
--oneviz-axis-label-color The color of the axis labels and legend text. #666666
--oneviz-font-family The font family used throughout the chart. sans-serif

Component-Specific APIs

<oneviz-barchart>

<oneviz-piechart>

<oneviz-linechart>

<oneviz-scatterchart>


Contributing

We welcome contributions! Please see our CONTRIBUTING.md for guidelines on how to set up the project, run the demo, and submit your work.

License

One-viz is released under the MIT License. See LICENSE for details.