GithubHelp home page GithubHelp logo

frolicorg / frolic-react Goto Github PK

View Code? Open in Web Editor NEW
57.0 2.0 2.0 193 KB

React Component Library to Build Analytics Dashboard 10x Faster

Home Page: https://www.frolicorg.com/frolic-react/docs

License: Apache License 2.0

TypeScript 90.78% JavaScript 8.82% CSS 0.17% HTML 0.23%
analytics dashboard react tailwindcss frontend ui ui-components recharts

frolic-react's Introduction

Frolic Logo

frolic-react is an open source react library to build UI for analytics dashboards much faster. It is built on top of react, tailwindcss and recharts. You can use frolic-react directly with frolic backend service to create full stack dashboards 10x faster.

GitHub contributors GitHub issues GitHub stars GitHub closed issues GitHub pull requests GitHub commit activity GitHub license Twitter Follow

Screenshot 2023-08-07 at 10 37 48 PM

Installation

frolic-react can be installed directly through npm.

npm i frolic-react

In your tailwind.config.js, add the following code:

module.exports = {
  content: [
    ...
    'node_modules/frolic-react/**/*.{js,ts,jsx,tsx}',
  ],
  ...
  plugins: [
    require('frolic-react'),
  ],
}

Usage

import { Card, LineChart, BarChart } from 'frolic-react'

const data = [
    { name: 'Page A', uv: 4000, pv: 2400, amt: 2400 },
    { name: 'Page B', uv: 3000, pv: 1398, amt: 2210 }
];

const Page = () => {
  return (
    <div className="grid grid-cols-2 gap-5">
      <Card title="Line Chart">
        <LineChart data={data} metrics={["uv", "pv", "amt"]} dimensions={["name"]}></LineChart>
      </Card>
      <Card title="Bar Chart">
        <BarChart data={data} metrics={["uv", "pv", "amt"]} dimensions={["name"]}></BarChart>
      </Card>
    </div>
  );
};

export default Page;

Components

Please refer to our documentation which list all our components with their APIs.

Integrations

You can use frolic-react directly with frolic backend service to create full stack dashboards much faster.

Support and Community

Issues are inevitable. When you have one, our entire team and our active developer community is around to help.

๐Ÿ’ฌ Ask for help on Discord

โš ๏ธ Open an issue right here on GitHub

How to Contribute

We โค๏ธ our contributors. We're committed to fostering an open, welcoming, and safe environment in the community.

๐Ÿ“• We expect everyone participating in the community to abide by our Code of Conduct. Please read and follow it.

๐Ÿค If you'd like to contribute, start by reading our Contribution Guide.

Lets build great software together.

License

This project is available under the Apache License 2.0

frolic-react's People

Contributors

arihantparsoya avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

frolic-react's Issues

Add Support for Custom Metrics and Dimension Names

When the user adds the data to the charts, he needs to set the metric and dimension attribute according to the attribute names present in data.

It is possible that the user wants to give different names to these labels and dimensions. For which we need to create another optional input attributes called labelNames and dimensionNames. When the user sends these attributes, we need to use these attributes to display in the UI

Add Support for Axis Labels

Currently there is no support for axis labels in frolic-react. To add support for it, we need to follow these steps:

  • We need to define two new parameters xLabel and yLabel for the charts which have X and Y axis.

  • Add Axis Inputs in Chart Interface

  • Implement the Axis Labels functionality in different graph components. For example, for AreaChart, we need to update the code such that it takes the axis labels and renders them in the UI

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.