bubble-chart-js 1.0.17 → 1.0.19

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.
Files changed (2) hide show
  1. package/README.md +14 -14
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -140,20 +140,20 @@ The `BubbleChart` class accepts a configuration object with the following proper
140
140
 
141
141
  The `BubbleChart` class accepts a configuration object with the following properties:
142
142
 
143
- | Property | Type | Required | Optional | Description | Default |
144
- | ---------------------------------- | ------------ | -------- | -------- | ------------------------------------------------------------------------------------------------- | ----------- |
145
- | `canvasContainerId` | `string` | ✔️ Yes | ❌ No | The ID of the container where the chart will be rendered. | `-` |
146
- | `data` | `DataItem[]` | ✔️ Yes | ❌ No | An array of objects containing `label` and `value` for each bubble. | `-` |
147
- | `defaultBubbleColor` | `string` | ❌ No | ✔️ Yes | Default color for bubbles if not specified in `colorMap`. | `"#3498db"` |
148
- | `fontSize` | `number` | ❌ No | ✔️ Yes | Font size for bubble labels. | `14` |
149
- | `fontFamily` | `string` | ❌ No | ✔️ Yes | Font family for text rendering. | `"Arial"` |
150
- | `fontColor` | `string` | ❌ No | ✔️ Yes | Color of the text inside bubbles. | `"#ffffff"` |
151
- | `minRadius` | `number` | ❌ No | ✔️ Yes | Minimum radius for the bubbles. | `10` |
152
- | `maxLines` | `number` | ❌ No | ✔️ Yes | Maximum number of lines allowed for text wrapping. | `3` |
153
- | `textWrap` | `boolean` | ❌ No | ✔️ Yes | Enables or disables text wrapping inside bubbles. | `true` |
154
- | `isResizeCanvasOnWindowSizeChange` | `boolean` | ❌ No | ✔️ Yes | Whether the chart should resize when the window size changes. | `true` |
155
- | `showToolTip` | `boolean` | ❌ No | ✔️ Yes | Whether the chart should display the tooltip or not. | `true` |
156
- | `onBubbleClick` | `method` | ❌ No | ✔️ Yes | Callback function triggered when a bubble is clicked. Provides the clicked bubble data and event. | `true` |
143
+ | Property | Type | Required | Optional | Default |
144
+ | -------------------------------------------------------------------------------------- | ------------ | -------- | -------- | ----------- |
145
+ | **`canvasContainerId`**<br/>ID of the container where the chart will be rendered | `string` | ✔️ Yes | ❌ No | `-` |
146
+ | **`data`**<br/>Array of objects containing `label` and `value` for each bubble | `DataItem[]` | ✔️ Yes | ❌ No | `-` |
147
+ | **`defaultBubbleColor`**<br/>Default color used when bubble color is not provided | `string` | ❌ No | ✔️ Yes | `"#3498db"` |
148
+ | **`fontSize`**<br/>Font size for bubble labels | `number` | ❌ No | ✔️ Yes | `14` |
149
+ | **`fontFamily`**<br/>Font family used for text rendering | `string` | ❌ No | ✔️ Yes | `"Arial"` |
150
+ | **`fontColor`**<br/>Text color inside bubbles | `string` | ❌ No | ✔️ Yes | `"#ffffff"` |
151
+ | **`minRadius`**<br/>Minimum radius of a bubble | `number` | ❌ No | ✔️ Yes | `10` |
152
+ | **`maxLines`**<br/>Maximum number of lines allowed for text wrapping | `number` | ❌ No | ✔️ Yes | `3` |
153
+ | **`textWrap`**<br/>Enable or disable text wrapping inside bubbles | `boolean` | ❌ No | ✔️ Yes | `true` |
154
+ | **`isResizeCanvasOnWindowSizeChange`**<br/>Automatically resize chart on window resize | `boolean` | ❌ No | ✔️ Yes | `true` |
155
+ | **`showToolTip`**<br/>Toggle tooltip visibility | `boolean` | ❌ No | ✔️ Yes | `true` |
156
+ | **`onBubbleClick`**<br/>Callback fired when a bubble is clicked | `method` | ❌ No | ✔️ Yes | `-` |
157
157
 
158
158
  ✔️ **Required**: These properties must be provided.
159
159
  ✔️ **Optional**: If not provided, the default value will be used.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bubble-chart-js",
3
- "version": "1.0.17",
3
+ "version": "1.0.19",
4
4
  "description": "bubbleChartJs is a lightweight, customizable JavaScript library for creating stacked bubble charts. It arranges bubbles based on their values, with the largest bubble positioned at the top and surrounding bubbles decreasing in size accordingly.",
5
5
  "main": "dist/bubbleChart.cjs.js",
6
6
  "module": "dist/bubbleChart.esm.js",