Skip to content

Commit c3e57b6

Browse files
lorant-onelightyfr
andauthored
Dataviz (#59)
* Add data-viz modules, add components to index, add recharts to package.json (#39) # Conflicts: # src/once-ui/components/index.ts # Conflicts: # src/once-ui/components/index.ts * Data-viz sizing changes (fill) * feat: add axis title props and adjust padding/margins in graph components * feat: extend barWidth prop to accept number and string types in graph components * feat: enhance tooltip styling and improve axis label visibility in graph components * fix: update tooltip text styling in MultiBarGraph component * feat: enhance tooltip styling and add MultiBarGraph component styles * feat: add dashed line support to LineBarGraph and LineGraph components * feat: update tooltip formatting to use locale string representation in graph components * feat: add PieChart component with customizable options and tooltip * migrate to 0.6 and remove data-viz imports from barrel * move data-viz components to new data module * clutched up and saved time sequence + curve type commits * Remove Unused Imports * add color tokens for categorical charts, simplify BarGraph styling + refact UI # Conflicts: # src/once-ui/modules/data/BarGraph.tsx * Alter MultiBarGraph and LineBarGraph to conform to BarGraph Styles * Refactor LineBarGraph and MultiBarGraph for improved styling and layout consistency * Enhance graph components with improved titles, descriptions, and layout adjustments * Refactor tooltip components in LineBarGraph and LineGraph for consistent styling and layout adjustments; add data-viz attribute to MultiBarGraph * Refactor color tokens in LineBarGraph, LineGraph, and MultiBarGraph for improved consistency; update styles and add data-viz attributes * Make LineGraph use data vars for stroke color * Make PieChart use data-viz token colors * update colors * minor adjustments to linechart * more styling * refact bar + line chart style + props * soimplify key handling in LineChart * refactor linebargraph to align to new chart styles * fix: Linebargraph tooltip label on x hide bug * fix GroupedBarChart Colors and Styles * feat: fix axis labeling and legend rendering on BarChart and GroupedBarChart * refactor PieChart * refact BarChart naming conventions to distinguish Recharts from Once UI * feat: add date range selection and filtering for LineChart data * prevent client caused errors * imports + naming + consistency * props, style, and stuff * ui updates * consistency + UI * buncha sexy updates * animated tooltip * more design, API and stuff * update component APIs, props and UI * time series prop refact (move to date object) * better date handling * better handling for legend props (merge with defaults) * some examples and minor api improvements * remove double tooltip label from PieChart * fix grouped bar chart area ids * piechart styles fix * minor fixes, examples * push charts 1px upward for better rendering with axes * fix tooltip bug, cleanup home, add devLogger util * merge GroupBarChart and BarChart since they are essentially the same * update readme --------- Co-authored-by: Adhitya Nadooli <127269031+lightyfr@users.noreply.github.com>
1 parent de91a88 commit c3e57b6

30 files changed

+2533
-71
lines changed

README.md

Lines changed: 47 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,68 +1,76 @@
11
# Once UI for Next.js
22

3-
A design system for indie builders who move fast and break limits without neglecting quality.
3+
A design system for indie builders who move fast and break limits without neglecting quality. Once UI combines the simplicity of low-code with the power of code: write 70% less compared to shadcn + tailwind.
44

55

66
![Once UI](public/images/og/home.jpg)
77

8-
# Features
8+
## Features
99

10-
Start building your Next.js app in minutes with:
11-
* **A robust token and style system** that simplifies customization and ensures consistency.
12-
* **A copy-and-paste component library** that integrates seamlessly into your project.
13-
* **Interactive documentation** to apply your branding and set component properties.
10+
Start building your Next.js app in minutes.
1411

15-
# Demo
16-
[demo.once-ui.com](https://demo.once-ui.com)
12+
* **Customization**: Manage design config in a single file.
13+
* **Components**: Access advanced components with simple APIs.
14+
* **Data-viz**: Add responsive charts with a few lines of code.
15+
* **SEO**: Use our SEO components to simplify meta and schema setup.
16+
* **PRO**: Launch ready-made apps without minimal coding with Once UI Pro.
1717

18-
![Once UI](public/images/demo.png)
18+
[Get Once UI Pro](https://once-ui.com/pricing)
1919

20-
# Getting started
21-
Clone the starter template from GitHub.
22-
```bash
23-
git clone https://github.com/once-ui-system/nextjs-starter.git
24-
```
20+
## Demo
2521

26-
You can also deploy it directly to Vercel.
22+
Check the [starter demo app](https://demo.once-ui.com).
2723

28-
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fonce-ui-system%2Fnextjs-starter&redirect-url=https%3A%2F%2Fonce-ui.com%2Fdocs%2F)
24+
![Once UI](public/images/demo.jpg)
2925

26+
## Documentation
3027

31-
View the step-by-step guide at [once-ui.com/docs](https://once-ui.com/docs).
28+
Learn how to build with Once UI at [docs.once-ui.com](https://docs.once-ui.com/once-ui/quick-start).
3229

33-
# Documentation
34-
[once-ui.com/docs](https://once-ui.com/docs)
30+
## Quick start
3531

36-
# Authors
37-
Connect with us!
32+
[Magic Portfolio](https://once-ui.com/products/magic-portfolio): Our free portfolio starter used and loved by thousands of creatives. Simple, customizable, responsive.
33+
34+
[Magic Store](https://once-ui.com/products/magic-store) (PRO): Our premium ecommerce storefront that lets you launch your merch store in minutes. Payment, production and shipping managed by Fourthwall.
35+
36+
[Magic Docs](https://once-ui.com/products/magic-docs) (PRO): Our premium documentation generator. Just add your MDX files and let Magic Docs handle the rest.
37+
38+
[Magic Bio](https://once-ui.com/products/magic-bio) (PRO): Our premium link-in-bio template that automatically fetches open-graph data. Just add your links and deploy.
39+
40+
[Once UI Blocks](https://once-ui.com/blocks) (PRO): Copy-paste pre-designed blocks and deploy fully-functional sites with lightning speed.
3841

39-
Lorant One: [Site](https://lorant.one), [Threads](https://www.threads.net/@lorant.one), [LinkedIn](https://www.linkedin.com/in/lorant-one/)
40-
Zsofia Komaromi: [Site](https://zsofia.pro), [Threads](https://www.threads.net/@zsofia_kom), [LinkedIn](https://www.linkedin.com/in/zsofiakomaromi/)
42+
[Once UI for Figma](https://once-ui.com/figma) (PRO): Design and prototype entire products from scratch in hours.
4143

42-
# Get involved
43-
- Join the [Design Engineers Club](https://discord.com/invite/5EyAQ4eNdS) on Discord to connect with designers, developers and share your projects.
44-
- Report a [bug](https://github.com/once-ui-system/nextjs-starter/issues/new?labels=bug&template=bug_report.md).
45-
- Submit a [feature request](https://github.com/once-ui-system/nextjs-starter/issues/new?labels=feature%20request&template=feature_request.md).
44+
## Get started
4645

47-
# License
46+
Clone the starter template from GitHub:
47+
```bash
48+
git clone https://github.com/once-ui-system/nextjs-starter.git
49+
```
50+
51+
Deploy to Vercel with a single click:
52+
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fonce-ui-system%2Fnextjs-starter&redirect-url=https%3A%2F%2Fonce-ui.com%2F)
53+
54+
## Creators
55+
56+
Connect with us!
4857

49-
Distributed under the MIT License. See `LICENSE.txt` for more information.
58+
**Lorant One**: [Site](https://lorant.one) / [Threads](https://www.threads.net/@lorant.one) / [LinkedIn](https://www.linkedin.com/in/lorant-one/)
5059

51-
# Sponsors
60+
**Zsofia Komaromi**: [Site](https://zsofia.pro) / [Threads](https://www.threads.net/@zsofia_kom) / [LinkedIn](https://www.linkedin.com/in/zsofiakomaromi/)
5261

53-
[github.com/sponsors/once-ui-system](https://github.com/sponsors/once-ui-system)
62+
## Become a Oncer
5463

55-
Become a sponsor and help us continue to develop and maintain this project.
64+
![Design Engineers Club](https://docs.once-ui.com/images/quasar-coding.jpg)
5665

57-
# Once UI for Figma
66+
Join the [Design Engineers Club](https://discord.com/invite/5EyAQ4eNdS) on Discord to connect with us and share your projects.
5867

59-
Once UI is also available for Figma.
60-
Design and prototype entire products from scratch in hours. Use the same tokens and components as the Next.js design system.
68+
Found a bug? Report it [here](https://github.com/once-ui-system/nextjs-starter/issues/new?labels=bug&template=bug_report.md). Got a feature request? Submit it [here](https://github.com/once-ui-system/nextjs-starter/issues/new?labels=feature%20request&template=feature_request.md).
6169

62-
Start designing: [once-ui.com/figma](https://once-ui.com/figma)
70+
## Sponsors
6371

64-
# Once UI Pro
72+
Once UI is an indie project. [Sponsor us](https://github.com/sponsors/once-ui-system) and get featured on our site!
6573

66-
Take your project further with Once UI Pro. Get access to complete templates, fully designed pages, and modular blocks that make building apps even faster.
74+
## License
6775

68-
Explore Pro: [once-ui.com/pro](https://once-ui.com/pro)
76+
Distributed under the MIT License. See `LICENSE.txt` for more information.

0 commit comments

Comments
 (0)