stz-chart-maker 2.3.5 → 2.3.7

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 (4) hide show
  1. package/README.md +17 -0
  2. package/dist/index.d.ts +232 -166
  3. package/dist/index.js +2988 -2892
  4. package/package.json +1 -1
package/README.md CHANGED
@@ -115,6 +115,23 @@ const chartConfig = ChartWrapper
115
115
  downloadChartAsImage('sales-chart');
116
116
  ```
117
117
 
118
+ ```tsx
119
+ import {
120
+ hideChartTooltip,
121
+ isChartDatasetVisible,
122
+ setChartDatasetVisibility,
123
+ showChartTooltip,
124
+ toggleChartDatasetVisibility,
125
+ } from 'stz-chart-maker';
126
+
127
+ setChartDatasetVisibility('sales-chart', 1, false);
128
+ const visible = toggleChartDatasetVisibility('sales-chart', 0);
129
+ console.log(isChartDatasetVisible('sales-chart', 0), visible);
130
+
131
+ showChartTooltip('sales-chart', [{ datasetIndex: 0, index: 2 }]);
132
+ hideChartTooltip('sales-chart');
133
+ ```
134
+
118
135
  ### 변경기록
119
136
  [CHANGELOG.md](./CHANGELOG.md) 파일을 참조하세요.
120
137