@lobehub/charts 1.9.3 → 1.9.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -10,7 +10,7 @@
10
10
 
11
11
  React modern charts components built on recharts
12
12
 
13
- [Changelog](./CHANGELOG.md) · [Report Bug][github-issues-link] · [Request Feature][github-issues-link]
13
+ [Documents](https://charts.lobehub.com) · [Changelog](./CHANGELOG.md) · [Report Bug][github-issues-link] · [Request Feature][github-issues-link]
14
14
 
15
15
  <!-- SHIELD GROUP -->
16
16
 
@@ -43,8 +43,10 @@ React modern charts components built on recharts
43
43
  - [🤝 Contributing](#-contributing)
44
44
  - [🩷 Sponsor](#-sponsor)
45
45
  - [🔗 Links](#-links)
46
- - [More Products](#more-products)
47
46
  - [Credits](#credits)
47
+ - [More Products](#more-products)
48
+ - [Design Resources](#design-resources)
49
+ - [Development Resources](#development-resources)
48
50
 
49
51
  ####
50
52
 
@@ -157,19 +159,31 @@ Every bit counts and your one-time donation sparkles in our galaxy of support! Y
157
159
 
158
160
  ## 🔗 Links
159
161
 
160
- ### More Products
161
-
162
- - **[🤖 Lobe Chat][lobe-chat] :** An open-source, extensible (Function Calling), high-performance chatbot framework. It supports one-click free deployment of your private ChatGPT/LLM web application.
163
- - **[🤯 Lobe Theme][lobe-theme] :** The modern theme for stable diffusion webui, exquisite interface design, highly customizable UI, and efficiency boosting features.
164
- - **[🌏 Lobe i18n][lobe-i18n] :** Lobe i18n is an automation tool for the i18n (internationalization) translation process, powered by ChatGPT. It supports features such as automatic splitting of large files, incremental updates, and customization options for the OpenAI model, API proxy, and temperature.
165
- - **[💌 Lobe Commit][lobe-commit] :** Lobe Commit is a CLI tool that leverages Langchain/ChatGPT to generate Gitmoji-based commit messages.
166
-
167
162
  ### Credits
168
163
 
169
164
  - **recharts** - <https://github.com/recharts/recharts>
170
165
  - **tremor** - <https://github.com/tremorlabs/tremor>
171
166
  - **react-activity-calendar** - <https://github.com/grubersjoe/react-activity-calendar>
172
167
 
168
+ ### More Products
169
+
170
+ - **[🤯 Lobe Chat](https://github.com/lobehub/lobe-chat)** - An open-source, extensible (Function Calling), high-performance chatbot framework. It supports one-click free deployment of your private ChatGPT/LLM web application.
171
+ - **[🅰️ Lobe Theme](https://github.com/lobehub/sd-webui-lobe-theme)** - The modern theme for stable diffusion webui, exquisite interface design, highly customizable UI, and efficiency boosting features.
172
+ - **[🧸 Lobe Vidol](https://github.com/lobehub/lobe-vidol)** - Experience the magic of virtual idol creation with Lobe Vidol, enjoy the elegance of our Exquisite UI Design, dance along using MMD Dance Support, and engage in Smooth Conversations.
173
+
174
+ ### Design Resources
175
+
176
+ - **[🍭 Lobe UI](https://ui.lobehub.com)** - An open-source UI component library for building AIGC web apps.
177
+ - **[🥨 Lobe Icons](https://lobehub.com/icons)** - Popular AI / LLM Model Brand SVG Logo and Icon Collection.
178
+ - **[📊 Lobe Charts](https://charts.lobehub.com)** - React modern charts components built on recharts
179
+
180
+ ### Development Resources
181
+
182
+ - **[🎤 Lobe TTS](https://tts.lobehub.com)** - A high-quality & reliable TTS/STT library for Server and Browser
183
+ - **[🌏 Lobe i18n](https://github.com/lobehub/lobe-cli-toolbox/blob/master/packages/lobe-i18n)** - Automation ai tool for the i18n (internationalization) translation process.
184
+
185
+ [More Resources](https://lobehub.com/resources)
186
+
173
187
  <div align="right">
174
188
 
175
189
  [![][back-to-top]](#readme-top)
@@ -216,10 +230,6 @@ This project is [MIT](./LICENSE) licensed.
216
230
  [github-releasedate-shield]: https://img.shields.io/github/release-date/lobehub/lobe-charts?labelColor=black&style=flat-square
217
231
  [github-stars-link]: https://github.com/lobehub/lobe-charts/network/stargazers
218
232
  [github-stars-shield]: https://img.shields.io/github/stars/lobehub/lobe-charts?color=ffcb47&labelColor=black&style=flat-square
219
- [lobe-chat]: https://github.com/lobehub/lobe-chat
220
- [lobe-commit]: https://github.com/lobehub/lobe-commit/tree/master/packages/lobe-commit
221
- [lobe-i18n]: https://github.com/lobehub/lobe-commit/tree/master/packages/lobe-i18n
222
- [lobe-theme]: https://github.com/lobehub/sd-webui-lobe-theme
223
233
  [npm-downloads-link]: https://www.npmjs.com/package/@lobehub/charts
224
234
  [npm-downloads-shield]: https://img.shields.io/npm/dt/@lobehub/charts?labelColor=black&style=flat-square
225
235
  [npm-release-link]: https://www.npmjs.com/package/@lobehub/charts
@@ -260,7 +260,8 @@ var AreaChart = /*#__PURE__*/forwardRef(function (props, ref) {
260
260
  return _objectSpread(_objectSpread({}, payloadItem), {}, {
261
261
  color: (_categoryColors$get = categoryColors.get(payloadItem.dataKey)) !== null && _categoryColors$get !== void 0 ? _categoryColors$get : theme.colorPrimary
262
262
  });
263
- })
263
+ }),
264
+ valueFormatter: valueFormatter
264
265
  }) : /*#__PURE__*/_jsx(ChartTooltip, {
265
266
  active: active,
266
267
  categoryColors: categoryColors,
@@ -332,7 +332,8 @@ var BarChart = /*#__PURE__*/forwardRef(function (props, ref) {
332
332
  return _objectSpread(_objectSpread({}, payloadItem), {}, {
333
333
  color: (_categoryColors$get = categoryColors.get(payloadItem.dataKey)) !== null && _categoryColors$get !== void 0 ? _categoryColors$get : theme.colorPrimary
334
334
  });
335
- })
335
+ }),
336
+ valueFormatter: valueFormatter
336
337
  }) : /*#__PURE__*/_jsx(ChartTooltip, {
337
338
  active: active,
338
339
  categoryColors: categoryColors,
@@ -206,7 +206,8 @@ var DonutChart = /*#__PURE__*/forwardRef(function (props, ref) {
206
206
  return _objectSpread(_objectSpread({}, payloadItem), {}, {
207
207
  color: (_payload$0$payload$co = payload === null || payload === void 0 || (_payload$2 = payload[0]) === null || _payload$2 === void 0 || (_payload$2 = _payload$2.payload) === null || _payload$2 === void 0 ? void 0 : _payload$2.color) !== null && _payload$0$payload$co !== void 0 ? _payload$0$payload$co : theme.colorPrimary
208
208
  });
209
- })
209
+ }),
210
+ valueFormatter: valueFormatter
210
211
  }) : /*#__PURE__*/_jsx(DonutChartTooltip, {
211
212
  active: active,
212
213
  customCategories: customCategories,
@@ -474,7 +474,8 @@ var FunnelChart = /*#__PURE__*/forwardRef(function (props, ref) {
474
474
  children: CustomTooltip ? /*#__PURE__*/_jsx(CustomTooltip, {
475
475
  active: !!tooltip.data,
476
476
  label: (_tooltip$data = tooltip.data) === null || _tooltip$data === void 0 ? void 0 : _tooltip$data.name,
477
- payload: tooltip.data ? [tooltip.data] : []
477
+ payload: tooltip.data ? [tooltip.data] : [],
478
+ valueFormatter: valueFormatter
478
479
  }) : /*#__PURE__*/_jsx(ChartTooltip, {
479
480
  active: !!tooltip.data,
480
481
  categoryColors: new Map([[(_tooltip$data$name = (_tooltip$data2 = tooltip.data) === null || _tooltip$data2 === void 0 ? void 0 : _tooltip$data2.name) !== null && _tooltip$data$name !== void 0 ? _tooltip$data$name : '', (_tooltip$data$color = (_tooltip$data3 = tooltip.data) === null || _tooltip$data3 === void 0 ? void 0 : _tooltip$data3.color) !== null && _tooltip$data$color !== void 0 ? _tooltip$data$color : '']]),
@@ -255,7 +255,8 @@ var LineChart = /*#__PURE__*/forwardRef(function (props, ref) {
255
255
  return _objectSpread(_objectSpread({}, payloadItem), {}, {
256
256
  color: (_categoryColors$get = categoryColors.get(payloadItem.dataKey)) !== null && _categoryColors$get !== void 0 ? _categoryColors$get : theme.colorPrimary
257
257
  });
258
- })
258
+ }),
259
+ valueFormatter: valueFormatter
259
260
  }) : /*#__PURE__*/_jsx(ChartTooltip, {
260
261
  active: active,
261
262
  categoryColors: categoryColors,
@@ -268,7 +268,8 @@ var ScatterChart = /*#__PURE__*/forwardRef(function (props, ref) {
268
268
  return _objectSpread(_objectSpread({}, payloadItem), {}, {
269
269
  color: (_categoryColors$get = categoryColors.get(color)) !== null && _categoryColors$get !== void 0 ? _categoryColors$get : theme.colorPrimary
270
270
  });
271
- })
271
+ }),
272
+ valueFormatter: valueFormatter
272
273
  }) : /*#__PURE__*/_jsx(ScatterChartTooltip, {
273
274
  active: active,
274
275
  axis: {
@@ -1,4 +1,6 @@
1
1
  import { NameType, Payload } from 'recharts/types/component/DefaultTooltipContent';
2
+ import { ScatterChartValueFormatter } from "../ScatterChart";
3
+ import { ValueFormatter } from "../types";
2
4
  export type CustomTooltipProps = {
3
5
  active: boolean | undefined;
4
6
  customCategories?: {
@@ -6,4 +8,5 @@ export type CustomTooltipProps = {
6
8
  };
7
9
  label: NameType | undefined;
8
10
  payload: Payload<string | number | (string | number)[], string | number>[] | undefined;
11
+ valueFormatter: ValueFormatter | ScatterChartValueFormatter;
9
12
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/charts",
3
- "version": "1.9.3",
3
+ "version": "1.9.5",
4
4
  "description": "React modern charts components built on recharts",
5
5
  "keywords": [
6
6
  "lobehub",