-
+
+
close
+
+
`;
};
-export const area = Template.bind({});
+export const Area = Template.bind({});
+
+// 图表类型 line area bar
+// 大数据量
+// sliding 动态效果
diff --git a/stories/bar.stories.ts b/stories/bar.stories.ts
index ed5b0f1..c08817b 100644
--- a/stories/bar.stories.ts
+++ b/stories/bar.stories.ts
@@ -1,51 +1,90 @@
import { Story, Meta } from '@storybook/html';
-import { groupBarData } from './data';
+import { dealWithTime, generateData } from './utilt';
-import { Chart, ScaleType } from '@alauda/chart';
-
-import '../src/theme/default.scss';
+import { Chart } from '@alauda/chart';
+import 'uplot/dist/uPlot.min.css';
export default {
title: 'Bar',
} as Meta;
-// More on component templates: https://storybook.js.org/docs/html/writing-stories/introduction#using-args
const Template: Story = () => {
setTimeout(() => {
- Chart({
- container: '#barChart',
- type: 'bar',
- // offset: {
- // x: 220,
- // y: 40,
- // },
- rotated: true,
- title: {
- text: '柱状图',
- },
- legend: {},
- tooltip: {
- trigger: 'axis',
- },
- seriesOption: {
- isGroup: true,
- stack: true,
- radius: 5,
- closeRadiusLadder: true,
- bandwidth: 10,
+ const chart = new Chart({
+ container: '.chart-bar',
+ data: [
+ // {
+ // name: 'bar1',
+ // values: [
+ // { x: 'a', y: 2 },
+ // { x: 'b', y: 4 },
+ // { x: 'c', y: 1 },
+ // ],
+ // },
+ // {
+ // name: 'bar2',
+ // values: [
+ // { x: 'a', y: 4 },
+ // { x: 'b', y: 2 },
+ // { x: 'c', y: 1 },
+ // ],
+ // },
+ // {
+ // name: 'bar3',
+ // values: [
+ // { x: 'a', y: 1 },
+ // { x: 'b', y: 1 },
+ // { x: 'c', y: 1 },
+ // ],
+ // },
+ { name: 'bar2', values: generateData('2023-01-31 09:00:00', 2, 2) },
+ { name: 'bar3', values: generateData('2023-01-31 09:00:00', 2, 2) },
+ ],
+ options: {
+ title: { text: 'bar chart' },
+ // legend: {
+ // position: 'bottom-right',
+ // }
+ scale: {
+ x: {
+ time: false,
+ },
+ },
+ tooltip: {
+ // showTitle: false
+ titleFormatter: title =>
+ `${dealWithTime(new Date(Number(title) * 1000))}`,
+ },
+ coordinate: { transposed: true },
+ bar: {
+ adjust: { type: 'stack' },
+ },
},
- data: groupBarData,
- xAxis: {
- type: ScaleType.ORDINAL,
- },
- yAxis: {
- minStep: 2,
+ });
+ // console.log(chart);
+ // chart.data(data);
+ // chart.coordinate().transpose();
+ chart.bar();
+ // chart.bar().adjust({ type: 'stack' });
+ // chart.shape('line', { name: 'bar2' });
+ chart.annotation().lineY({
+ data: 10,
+ text: {
+ content: 'line',
},
});
- }, 0);
+ chart.render();
+ });
return `
-
`;
+
+ `;
};
-export const bar = Template.bind({});
+export const Bar = Template.bind({});
+
+// 图表类型 line area bar
+// 大数据量
+// sliding 动态效果
diff --git a/stories/base-bar.stories.ts b/stories/base-bar.stories.ts
deleted file mode 100644
index 05aea20..0000000
--- a/stories/base-bar.stories.ts
+++ /dev/null
@@ -1,40 +0,0 @@
-import { Story, Meta } from '@storybook/html';
-import { timeFormat } from 'd3';
-
-import { barData } from './data';
-
-import { Chart } from '@alauda/chart';
-
-import '../src/theme/default.scss';
-
-export default {
- title: 'BaseBar',
-} as Meta;
-
-// More on component templates: https://storybook.js.org/docs/html/writing-stories/introduction#using-args
-const Template: Story = () => {
- setTimeout(() => {
- Chart({
- container: '#baseBar',
- type: 'bar',
- // rotated: true,
- title: {
- text: '柱状图',
- },
- tooltip: {},
- seriesOption: {
- // stack: true,
- // radius: 5,
- // bandwidth: 10,
- },
- data: barData,
- xAxis: {
- // type: ScaleType.TIME,
- tickFormatter: () => timeFormat('%H:%M'),
- },
- });
- }, 0);
- return `
`;
-};
-
-export const BaseBar = Template.bind({});
diff --git a/stories/data.ts b/stories/data.ts
deleted file mode 100644
index 6e40a6b..0000000
--- a/stories/data.ts
+++ /dev/null
@@ -1,1687 +0,0 @@
-export const data = [
- {
- name: 'deploy-a-67b6bfbf46-r6dbl',
- values: [
- { x: 1_656_402_180_000, y: 4.886_106_293_796_049_5 },
- { x: 1_656_402_240_000, y: 4.611_278_000_458_449 },
- { x: 1_656_402_300_000, y: 4.580_173_171_028_2 },
- { x: 1_656_402_360_000, y: 4.475_392_150_592_65 },
- { x: 1_656_402_420_000, y: 4.512_954_807_898_25 },
- { x: 1_656_402_480_000, y: 4.605_846_033_809_15 },
- { x: 1_656_402_540_000, y: 4.568_795_552_000_7 },
- { x: 1_656_402_600_000, y: 4.505_600_601_088_15 },
- { x: 1_656_402_660_000, y: 4.621_248_619_932_049 },
- { x: 1_656_402_720_000, y: 4.841_830_777_650_949 },
- { x: 1_656_402_780_000, y: 4.644_490_140_896_949_4 },
- { x: 1_656_402_840_000, y: 4.485_451_698_423_399 },
- { x: 1_656_402_900_000, y: 4.547_863_830_671_6 },
- { x: 1_656_402_960_000, y: 4.619_941_783_151_249_5 },
- { x: 1_656_403_020_000, y: 4.595_141_653_783_4 },
- { x: 1_656_403_080_000, y: 4.414_480_463_545_999 },
- { x: 1_656_403_140_000, y: 4.510_077_582_101_1 },
- { x: 1_656_403_200_000, y: 4.715_503_736_728_2 },
- { x: 1_656_403_260_000, y: 4.457_457_346_512_85 },
- { x: 1_656_403_320_000, y: 4.943_002_866_81 },
- { x: 1_656_403_380_000, y: 5.142_426_911_407_099_5 },
- { x: 1_656_403_440_000, y: 4.690_855_183_154_85 },
- { x: 1_656_403_500_000, y: 4.664_914_622_379_75 },
- { x: 1_656_403_560_000, y: 4.641_054_577_899_45 },
- { x: 1_656_403_620_000, y: 4.552_596_495_833_1 },
- { x: 1_656_403_680_000, y: 4.490_925_517_272_6 },
- { x: 1_656_403_740_000, y: 4.540_932_126_773_2 },
- { x: 1_656_403_800_000, y: 4.485_414_964_670_75 },
- { x: 1_656_403_860_000, y: 4.694_334_221_292_65 },
- { x: 1_656_403_920_000, y: 4.744_454_834_353_1 },
- { x: 1_656_403_980_000, y: 4.610_508_938_349_3 },
- { x: 1_656_404_040_000, y: 4.714_607_089_670_149_5 },
- { x: 1_656_404_100_000, y: 4.557_340_738_578_8 },
- { x: 1_656_404_160_000, y: 4.358_969_977_314_7 },
- { x: 1_656_404_220_000, y: 4.295_183_225_861_45 },
- { x: 1_656_404_280_000, y: 4.399_047_154_106_25 },
- { x: 1_656_404_340_000, y: 4.943_577_520_903_55 },
- { x: 1_656_404_400_000, y: 5.644_588_735_606_45 },
- { x: 1_656_404_460_000, y: 6.182_428_882_157_649 },
- { x: 1_656_404_520_000, y: 5.570_285_598_539 },
- { x: 1_656_404_580_000, y: 4.578_652_139_937_95 },
- { x: 1_656_404_640_000, y: 4.507_089_474_343_901 },
- { x: 1_656_404_700_000, y: 4.780_431_628_415_849 },
- ],
- unit: '%',
- color: '#006eff',
- },
- {
- name: 'deploy-a-8445d8c9fc-x7fr4',
- values: [
- { x: 1_656_402_180_000, y: null },
- { x: 1_656_402_240_000, y: null },
- { x: 1_656_402_300_000, y: null },
- { x: 1_656_402_360_000, y: null },
- { x: 1_656_402_420_000, y: null },
- { x: 1_656_402_480_000, y: null },
- { x: 1_656_402_540_000, y: null },
- { x: 1_656_402_600_000, y: null },
- { x: 1_656_402_660_000, y: null },
- { x: 1_656_402_720_000, y: null },
- { x: 1_656_402_780_000, y: null },
- { x: 1_656_402_840_000, y: null },
- { x: 1_656_402_900_000, y: null },
- { x: 1_656_402_960_000, y: null },
- { x: 1_656_403_020_000, y: null },
- { x: 1_656_403_080_000, y: null },
- { x: 1_656_403_140_000, y: null },
- { x: 1_656_403_200_000, y: null },
- { x: 1_656_403_260_000, y: null },
- { x: 1_656_403_320_000, y: null },
- { x: 1_656_403_380_000, y: null },
- { x: 1_656_403_440_000, y: null },
- { x: 1_656_403_500_000, y: null },
- { x: 1_656_403_560_000, y: null },
- { x: 1_656_403_620_000, y: null },
- { x: 1_656_403_680_000, y: null },
- { x: 1_656_403_740_000, y: null },
- { x: 1_656_403_800_000, y: null },
- { x: 1_656_403_860_000, y: null },
- { x: 1_656_403_920_000, y: null },
- { x: 1_656_403_980_000, y: null },
- { x: 1_656_404_040_000, y: null },
- { x: 1_656_404_100_000, y: null },
- { x: 1_656_404_160_000, y: null },
- { x: 1_656_404_220_000, y: null },
- { x: 1_656_404_280_000, y: null },
- { x: 1_656_404_340_000, y: null },
- { x: 1_656_404_400_000, y: null },
- { x: 1_656_404_460_000, y: null },
- { x: 1_656_404_520_000, y: null },
- { x: 1_656_404_580_000, y: null },
- { x: 1_656_404_640_000, y: null },
- { x: 1_656_404_700_000, y: 15.389_840_554_945 },
- { x: 1_656_404_760_000, y: 8.849_063_438_889_4 },
- { x: 1_656_404_820_000, y: 4.448_660_703_050_35 },
- { x: 1_656_404_880_000, y: 4.590_960_486_232_4 },
- { x: 1_656_404_940_000, y: 4.509_079_948_065_199_5 },
- { x: 1_656_405_000_000, y: 4.339_916_755_135_15 },
- { x: 1_656_405_060_000, y: 4.761_793_444_603_95 },
- { x: 1_656_405_120_000, y: 5.101_320_351_473_699 },
- { x: 1_656_405_180_000, y: 4.626_832_420_906_499 },
- { x: 1_656_405_240_000, y: 4.217_734_780_035_349 },
- { x: 1_656_405_300_000, y: 4.544_432_987_163_15 },
- { x: 1_656_405_360_000, y: 4.751_148_730_778_45 },
- { x: 1_656_405_420_000, y: 4.478_849_056_849_65 },
- { x: 1_656_405_480_000, y: 4.228_520_191_837_95 },
- { x: 1_656_405_540_000, y: 4.137_299_117_695_449_4 },
- { x: 1_656_405_600_000, y: 4.111_430_542_483_35 },
- { x: 1_656_405_660_000, y: 4.053_438_065_286_199 },
- { x: 1_656_405_720_000, y: 4.252_526_857_895_05 },
- { x: 1_656_405_780_000, y: 4.386_664_088_705_499_5 },
- ],
- unit: '%',
- color: '#24b37a',
- },
-];
-export const data1 = [
- {
- name: 'accesstokeninfoes.auth.alauda.io',
- values: [
- { x: 1_637_366_580, y: 1 },
- { x: 1_637_366_640, y: 1 },
- { x: 1_637_366_700, y: 1 },
- { x: 1_637_366_760, y: 1 },
- { x: 1_637_366_820, y: 1 },
- { x: 1_637_366_880, y: 1 },
- { x: 1_637_366_940, y: 1 },
- { x: 1_637_367_000, y: 1 },
- { x: 1_637_367_060, y: 1 },
- { x: 1_637_367_120, y: 1 },
- { x: 1_637_367_180, y: 1 },
- { x: 1_637_367_240, y: 1 },
- { x: 1_637_367_300, y: 1 },
- { x: 1_637_367_360, y: 1 },
- { x: 1_637_367_420, y: 1 },
- { x: 1_637_367_480, y: 1 },
- { x: 1_637_367_540, y: 1 },
- { x: 1_637_367_600, y: 1 },
- { x: 1_637_367_660, y: 1 },
- { x: 1_637_367_720, y: 1 },
- { x: 1_637_367_780, y: 1 },
- { x: 1_637_367_840, y: 1 },
- { x: 1_637_367_900, y: 1 },
- { x: 1_637_367_960, y: 1 },
- { x: 1_637_368_020, y: 1 },
- { x: 1_637_368_080, y: 1 },
- { x: 1_637_368_140, y: 1 },
- { x: 1_637_368_200, y: 1 },
- { x: 1_637_368_260, y: 1 },
- { x: 1_637_368_320, y: 1 },
- { x: 1_637_368_380, y: 1 },
- { x: 1_637_368_440, y: 1 },
- { x: 1_637_368_500, y: 1 },
- { x: 1_637_368_560, y: 1 },
- { x: 1_637_368_620, y: 1 },
- { x: 1_637_368_680, y: 1 },
- { x: 1_637_368_740, y: 1 },
- { x: 1_637_368_800, y: 1 },
- { x: 1_637_368_860, y: 1 },
- { x: 1_637_368_920, y: 1 },
- { x: 1_637_368_980, y: 1 },
- { x: 1_637_369_040, y: 1 },
- { x: 1_637_369_100, y: 1 },
- { x: 1_637_369_160, y: 1 },
- { x: 1_637_369_220, y: 1 },
- { x: 1_637_369_280, y: 1 },
- { x: 1_637_369_340, y: 1 },
- { x: 1_637_369_400, y: 1 },
- { x: 1_637_369_460, y: 1 },
- { x: 1_637_369_520, y: 1 },
- { x: 1_637_369_580, y: 1 },
- { x: 1_637_369_640, y: 1 },
- { x: 1_637_369_700, y: 1 },
- { x: 1_637_369_760, y: 1 },
- { x: 1_637_369_820, y: 1 },
- { x: 1_637_369_880, y: 1 },
- { x: 1_637_369_940, y: 1 },
- { x: 1_637_370_000, y: 1 },
- { x: 1_637_370_060, y: 1 },
- { x: 1_637_370_120, y: 1 },
- { x: 1_637_370_180, y: 1 },
- ],
- unit: '个',
- },
- {
- name: 'acp.product.alauda.io',
- values: [
- { x: 1_637_366_580, y: 1 },
- { x: 1_637_366_640, y: 1 },
- { x: 1_637_366_700, y: 1 },
- { x: 1_637_366_760, y: 1 },
- { x: 1_637_366_820, y: 1 },
- { x: 1_637_366_880, y: 1 },
- { x: 1_637_366_940, y: 1 },
- { x: 1_637_367_000, y: 1 },
- { x: 1_637_367_060, y: 1 },
- { x: 1_637_367_120, y: 1 },
- { x: 1_637_367_180, y: 1 },
- { x: 1_637_367_240, y: 1 },
- { x: 1_637_367_300, y: 1 },
- { x: 1_637_367_360, y: 1 },
- { x: 1_637_367_420, y: 1 },
- { x: 1_637_367_480, y: 1 },
- { x: 1_637_367_540, y: 1 },
- { x: 1_637_367_600, y: 1 },
- { x: 1_637_367_660, y: 1 },
- { x: 1_637_367_720, y: 1 },
- { x: 1_637_367_780, y: 1 },
- { x: 1_637_367_840, y: 1 },
- { x: 1_637_367_900, y: 1 },
- { x: 1_637_367_960, y: 1 },
- { x: 1_637_368_020, y: 1 },
- { x: 1_637_368_080, y: 1 },
- { x: 1_637_368_140, y: 1 },
- { x: 1_637_368_200, y: 1 },
- { x: 1_637_368_260, y: 1 },
- { x: 1_637_368_320, y: 1 },
- { x: 1_637_368_380, y: 1 },
- { x: 1_637_368_440, y: 1 },
- { x: 1_637_368_500, y: 1 },
- { x: 1_637_368_560, y: 1 },
- { x: 1_637_368_620, y: 1 },
- { x: 1_637_368_680, y: 1 },
- { x: 1_637_368_740, y: 1 },
- { x: 1_637_368_800, y: 1 },
- { x: 1_637_368_860, y: 1 },
- { x: 1_637_368_920, y: 1 },
- { x: 1_637_368_980, y: 1 },
- { x: 1_637_369_040, y: 1 },
- { x: 1_637_369_100, y: 1 },
- { x: 1_637_369_160, y: 1 },
- { x: 1_637_369_220, y: 1 },
- { x: 1_637_369_280, y: 1 },
- { x: 1_637_369_340, y: 1 },
- { x: 1_637_369_400, y: 1 },
- { x: 1_637_369_460, y: 1 },
- { x: 1_637_369_520, y: 1 },
- { x: 1_637_369_580, y: 1 },
- { x: 1_637_369_640, y: 1 },
- { x: 1_637_369_700, y: 1 },
- { x: 1_637_369_760, y: 1 },
- { x: 1_637_369_820, y: 1 },
- { x: 1_637_369_880, y: 1 },
- { x: 1_637_369_940, y: 1 },
- { x: 1_637_370_000, y: 1 },
- { x: 1_637_370_060, y: 1 },
- { x: 1_637_370_120, y: 1 },
- { x: 1_637_370_180, y: 1 },
- ],
- unit: '个',
- },
- {
- name: 'alaudafeaturegates.alauda.io',
- values: [
- { x: 1_637_366_580, y: 190 },
- { x: 1_637_366_640, y: 190 },
- { x: 1_637_366_700, y: 190 },
- { x: 1_637_366_760, y: 190 },
- { x: 1_637_366_820, y: 190 },
- { x: 1_637_366_880, y: 190 },
- { x: 1_637_366_940, y: 190 },
- { x: 1_637_367_000, y: 190 },
- { x: 1_637_367_060, y: 190 },
- { x: 1_637_367_120, y: 190 },
- { x: 1_637_367_180, y: 190 },
- { x: 1_637_367_240, y: 190 },
- { x: 1_637_367_300, y: 190 },
- { x: 1_637_367_360, y: 190 },
- { x: 1_637_367_420, y: 190 },
- { x: 1_637_367_480, y: 190 },
- { x: 1_637_367_540, y: 190 },
- { x: 1_637_367_600, y: 190 },
- { x: 1_637_367_660, y: 190 },
- { x: 1_637_367_720, y: 190 },
- { x: 1_637_367_780, y: 190 },
- { x: 1_637_367_840, y: 190 },
- { x: 1_637_367_900, y: 190 },
- { x: 1_637_367_960, y: 190 },
- { x: 1_637_368_020, y: 190 },
- { x: 1_637_368_080, y: 190 },
- { x: 1_637_368_140, y: 190 },
- { x: 1_637_368_200, y: 190 },
- { x: 1_637_368_260, y: 190 },
- { x: 1_637_368_320, y: 190 },
- { x: 1_637_368_380, y: 190 },
- { x: 1_637_368_440, y: 190 },
- { x: 1_637_368_500, y: 190 },
- { x: 1_637_368_560, y: 190 },
- { x: 1_637_368_620, y: 190 },
- { x: 1_637_368_680, y: 190 },
- { x: 1_637_368_740, y: 190 },
- { x: 1_637_368_800, y: 190 },
- { x: 1_637_368_860, y: 190 },
- { x: 1_637_368_920, y: 190 },
- { x: 1_637_368_980, y: 190 },
- { x: 1_637_369_040, y: 190 },
- { x: 1_637_369_100, y: 190 },
- { x: 1_637_369_160, y: 190 },
- { x: 1_637_369_220, y: 190 },
- { x: 1_637_369_280, y: 190 },
- { x: 1_637_369_340, y: 190 },
- { x: 1_637_369_400, y: 190 },
- { x: 1_637_369_460, y: 190 },
- { x: 1_637_369_520, y: 190 },
- { x: 1_637_369_580, y: 190 },
- { x: 1_637_369_640, y: 190 },
- { x: 1_637_369_700, y: 190 },
- { x: 1_637_369_760, y: 190 },
- { x: 1_637_369_820, y: 190 },
- { x: 1_637_369_880, y: 190 },
- { x: 1_637_369_940, y: 190 },
- { x: 1_637_370_000, y: 190 },
- { x: 1_637_370_060, y: 190 },
- { x: 1_637_370_120, y: 190 },
- { x: 1_637_370_180, y: 190 },
- ],
- unit: '个',
- },
- {
- name: 'alaudaloadbalancer2.crd.alauda.io',
- values: [
- { x: 1_637_366_580, y: 1 },
- { x: 1_637_366_640, y: 1 },
- { x: 1_637_366_700, y: 1 },
- { x: 1_637_366_760, y: 1 },
- { x: 1_637_366_820, y: 1 },
- { x: 1_637_366_880, y: 1 },
- { x: 1_637_366_940, y: 1 },
- { x: 1_637_367_000, y: 1 },
- { x: 1_637_367_060, y: 1 },
- { x: 1_637_367_120, y: 1 },
- { x: 1_637_367_180, y: 1 },
- { x: 1_637_367_240, y: 1 },
- { x: 1_637_367_300, y: 1 },
- { x: 1_637_367_360, y: 1 },
- { x: 1_637_367_420, y: 1 },
- { x: 1_637_367_480, y: 1 },
- { x: 1_637_367_540, y: 1 },
- { x: 1_637_367_600, y: 1 },
- { x: 1_637_367_660, y: 1 },
- { x: 1_637_367_720, y: 1 },
- { x: 1_637_367_780, y: 1 },
- { x: 1_637_367_840, y: 1 },
- { x: 1_637_367_900, y: 1 },
- { x: 1_637_367_960, y: 1 },
- { x: 1_637_368_020, y: 1 },
- { x: 1_637_368_080, y: 1 },
- { x: 1_637_368_140, y: 1 },
- { x: 1_637_368_200, y: 1 },
- { x: 1_637_368_260, y: 1 },
- { x: 1_637_368_320, y: 1 },
- { x: 1_637_368_380, y: 1 },
- { x: 1_637_368_440, y: 1 },
- { x: 1_637_368_500, y: 1 },
- { x: 1_637_368_560, y: 1 },
- { x: 1_637_368_620, y: 1 },
- { x: 1_637_368_680, y: 1 },
- { x: 1_637_368_740, y: 1 },
- { x: 1_637_368_800, y: 1 },
- { x: 1_637_368_860, y: 1 },
- { x: 1_637_368_920, y: 1 },
- { x: 1_637_368_980, y: 1 },
- { x: 1_637_369_040, y: 1 },
- { x: 1_637_369_100, y: 1 },
- { x: 1_637_369_160, y: 1 },
- { x: 1_637_369_220, y: 1 },
- { x: 1_637_369_280, y: 1 },
- { x: 1_637_369_340, y: 1 },
- { x: 1_637_369_400, y: 1 },
- { x: 1_637_369_460, y: 1 },
- { x: 1_637_369_520, y: 1 },
- { x: 1_637_369_580, y: 1 },
- { x: 1_637_369_640, y: 1 },
- { x: 1_637_369_700, y: 1 },
- { x: 1_637_369_760, y: 1 },
- { x: 1_637_369_820, y: 1 },
- { x: 1_637_369_880, y: 1 },
- { x: 1_637_369_940, y: 1 },
- { x: 1_637_370_000, y: 1 },
- { x: 1_637_370_060, y: 1 },
- { x: 1_637_370_120, y: 1 },
- { x: 1_637_370_180, y: 1 },
- ],
- unit: '个',
- },
- {
- name: 'alaudaproducts.portal.alauda.io',
- values: [
- { x: 1_637_366_580, y: 4 },
- { x: 1_637_366_640, y: 4 },
- { x: 1_637_366_700, y: 4 },
- { x: 1_637_366_760, y: 4 },
- { x: 1_637_366_820, y: 4 },
- { x: 1_637_366_880, y: 4 },
- { x: 1_637_366_940, y: 4 },
- { x: 1_637_367_000, y: 4 },
- { x: 1_637_367_060, y: 4 },
- { x: 1_637_367_120, y: 4 },
- { x: 1_637_367_180, y: 4 },
- { x: 1_637_367_240, y: 4 },
- { x: 1_637_367_300, y: 4 },
- { x: 1_637_367_360, y: 4 },
- { x: 1_637_367_420, y: 4 },
- { x: 1_637_367_480, y: 4 },
- { x: 1_637_367_540, y: 4 },
- { x: 1_637_367_600, y: 4 },
- { x: 1_637_367_660, y: 4 },
- { x: 1_637_367_720, y: 4 },
- { x: 1_637_367_780, y: 4 },
- { x: 1_637_367_840, y: 4 },
- { x: 1_637_367_900, y: 4 },
- { x: 1_637_367_960, y: 4 },
- { x: 1_637_368_020, y: 4 },
- { x: 1_637_368_080, y: 4 },
- { x: 1_637_368_140, y: 4 },
- { x: 1_637_368_200, y: 4 },
- { x: 1_637_368_260, y: 4 },
- { x: 1_637_368_320, y: 4 },
- { x: 1_637_368_380, y: 4 },
- { x: 1_637_368_440, y: 4 },
- { x: 1_637_368_500, y: 4 },
- { x: 1_637_368_560, y: 4 },
- { x: 1_637_368_620, y: 4 },
- { x: 1_637_368_680, y: 4 },
- { x: 1_637_368_740, y: 4 },
- { x: 1_637_368_800, y: 4 },
- { x: 1_637_368_860, y: 4 },
- { x: 1_637_368_920, y: 4 },
- { x: 1_637_368_980, y: 4 },
- { x: 1_637_369_040, y: 4 },
- { x: 1_637_369_100, y: 4 },
- { x: 1_637_369_160, y: 4 },
- { x: 1_637_369_220, y: 4 },
- { x: 1_637_369_280, y: 4 },
- { x: 1_637_369_340, y: 4 },
- { x: 1_637_369_400, y: 4 },
- { x: 1_637_369_460, y: 4 },
- { x: 1_637_369_520, y: 4 },
- { x: 1_637_369_580, y: 4 },
- { x: 1_637_369_640, y: 4 },
- { x: 1_637_369_700, y: 4 },
- { x: 1_637_369_760, y: 4 },
- { x: 1_637_369_820, y: 4 },
- { x: 1_637_369_880, y: 4 },
- { x: 1_637_369_940, y: 4 },
- { x: 1_637_370_000, y: 4 },
- { x: 1_637_370_060, y: 4 },
- { x: 1_637_370_120, y: 4 },
- { x: 1_637_370_180, y: 4 },
- ],
- unit: '个',
- },
- {
- name: 'alertmanagerconfigs.monitoring.coreos.com',
- values: [
- { x: 1_637_366_580, y: 0 },
- { x: 1_637_366_640, y: 0 },
- { x: 1_637_366_700, y: 0 },
- { x: 1_637_366_760, y: 0 },
- { x: 1_637_366_820, y: 0 },
- { x: 1_637_366_880, y: 0 },
- { x: 1_637_366_940, y: 0 },
- { x: 1_637_367_000, y: 0 },
- { x: 1_637_367_060, y: 0 },
- { x: 1_637_367_120, y: 0 },
- { x: 1_637_367_180, y: 0 },
- { x: 1_637_367_240, y: 0 },
- { x: 1_637_367_300, y: 0 },
- { x: 1_637_367_360, y: 0 },
- { x: 1_637_367_420, y: 0 },
- { x: 1_637_367_480, y: 0 },
- { x: 1_637_367_540, y: 0 },
- { x: 1_637_367_600, y: 0 },
- { x: 1_637_367_660, y: 0 },
- { x: 1_637_367_720, y: 0 },
- { x: 1_637_367_780, y: 0 },
- { x: 1_637_367_840, y: 0 },
- { x: 1_637_367_900, y: 0 },
- { x: 1_637_367_960, y: 0 },
- { x: 1_637_368_020, y: 0 },
- { x: 1_637_368_080, y: 0 },
- { x: 1_637_368_140, y: 0 },
- { x: 1_637_368_200, y: 0 },
- { x: 1_637_368_260, y: 0 },
- { x: 1_637_368_320, y: 0 },
- { x: 1_637_368_380, y: 0 },
- { x: 1_637_368_440, y: 0 },
- { x: 1_637_368_500, y: 0 },
- { x: 1_637_368_560, y: 0 },
- { x: 1_637_368_620, y: 0 },
- { x: 1_637_368_680, y: 0 },
- { x: 1_637_368_740, y: 0 },
- { x: 1_637_368_800, y: 0 },
- { x: 1_637_368_860, y: 0 },
- { x: 1_637_368_920, y: 0 },
- { x: 1_637_368_980, y: 0 },
- { x: 1_637_369_040, y: 0 },
- { x: 1_637_369_100, y: 0 },
- { x: 1_637_369_160, y: 0 },
- { x: 1_637_369_220, y: 0 },
- { x: 1_637_369_280, y: 0 },
- { x: 1_637_369_340, y: 0 },
- { x: 1_637_369_400, y: 0 },
- { x: 1_637_369_460, y: 0 },
- { x: 1_637_369_520, y: 0 },
- { x: 1_637_369_580, y: 0 },
- { x: 1_637_369_640, y: 0 },
- { x: 1_637_369_700, y: 0 },
- { x: 1_637_369_760, y: 0 },
- { x: 1_637_369_820, y: 0 },
- { x: 1_637_369_880, y: 0 },
- { x: 1_637_369_940, y: 0 },
- { x: 1_637_370_000, y: 0 },
- { x: 1_637_370_060, y: 0 },
- { x: 1_637_370_120, y: 0 },
- { x: 1_637_370_180, y: 0 },
- ],
- unit: '个',
- },
- {
- name: 'alertmanagers.monitoring.coreos.com',
- values: [
- { x: 1_637_366_580, y: 1 },
- { x: 1_637_366_640, y: 1 },
- { x: 1_637_366_700, y: 1 },
- { x: 1_637_366_760, y: 1 },
- { x: 1_637_366_820, y: 1 },
- { x: 1_637_366_880, y: 1 },
- { x: 1_637_366_940, y: 1 },
- { x: 1_637_367_000, y: 1 },
- { x: 1_637_367_060, y: 1 },
- { x: 1_637_367_120, y: 1 },
- { x: 1_637_367_180, y: 1 },
- { x: 1_637_367_240, y: 1 },
- { x: 1_637_367_300, y: 1 },
- { x: 1_637_367_360, y: 1 },
- { x: 1_637_367_420, y: 1 },
- { x: 1_637_367_480, y: 1 },
- { x: 1_637_367_540, y: 1 },
- { x: 1_637_367_600, y: 1 },
- { x: 1_637_367_660, y: 1 },
- { x: 1_637_367_720, y: 1 },
- { x: 1_637_367_780, y: 1 },
- { x: 1_637_367_840, y: 1 },
- { x: 1_637_367_900, y: 1 },
- { x: 1_637_367_960, y: 1 },
- { x: 1_637_368_020, y: 1 },
- { x: 1_637_368_080, y: 1 },
- { x: 1_637_368_140, y: 1 },
- { x: 1_637_368_200, y: 1 },
- { x: 1_637_368_260, y: 1 },
- { x: 1_637_368_320, y: 1 },
- { x: 1_637_368_380, y: 1 },
- { x: 1_637_368_440, y: 1 },
- { x: 1_637_368_500, y: 1 },
- { x: 1_637_368_560, y: 1 },
- { x: 1_637_368_620, y: 1 },
- { x: 1_637_368_680, y: 1 },
- { x: 1_637_368_740, y: 1 },
- { x: 1_637_368_800, y: 1 },
- { x: 1_637_368_860, y: 1 },
- { x: 1_637_368_920, y: 1 },
- { x: 1_637_368_980, y: 1 },
- { x: 1_637_369_040, y: 1 },
- { x: 1_637_369_100, y: 1 },
- { x: 1_637_369_160, y: 1 },
- { x: 1_637_369_220, y: 1 },
- { x: 1_637_369_280, y: 1 },
- { x: 1_637_369_340, y: 1 },
- { x: 1_637_369_400, y: 1 },
- { x: 1_637_369_460, y: 1 },
- { x: 1_637_369_520, y: 1 },
- { x: 1_637_369_580, y: 1 },
- { x: 1_637_369_640, y: 1 },
- { x: 1_637_369_700, y: 1 },
- { x: 1_637_369_760, y: 1 },
- { x: 1_637_369_820, y: 1 },
- { x: 1_637_369_880, y: 1 },
- { x: 1_637_369_940, y: 1 },
- { x: 1_637_370_000, y: 1 },
- { x: 1_637_370_060, y: 1 },
- { x: 1_637_370_120, y: 1 },
- { x: 1_637_370_180, y: 1 },
- ],
- unit: '个',
- },
- {
- name: 'alertproviders.flagger.app',
- values: [
- { x: 1_637_366_580, y: 0 },
- { x: 1_637_366_640, y: 0 },
- { x: 1_637_366_700, y: 0 },
- { x: 1_637_366_760, y: 0 },
- { x: 1_637_366_820, y: 0 },
- { x: 1_637_366_880, y: 0 },
- { x: 1_637_366_940, y: 0 },
- { x: 1_637_367_000, y: 0 },
- { x: 1_637_367_060, y: 0 },
- { x: 1_637_367_120, y: 0 },
- { x: 1_637_367_180, y: 0 },
- { x: 1_637_367_240, y: 0 },
- { x: 1_637_367_300, y: 0 },
- { x: 1_637_367_360, y: 0 },
- { x: 1_637_367_420, y: 0 },
- { x: 1_637_367_480, y: 0 },
- { x: 1_637_367_540, y: 0 },
- { x: 1_637_367_600, y: 0 },
- { x: 1_637_367_660, y: 0 },
- { x: 1_637_367_720, y: 0 },
- { x: 1_637_367_780, y: 0 },
- { x: 1_637_367_840, y: 0 },
- { x: 1_637_367_900, y: 0 },
- { x: 1_637_367_960, y: 0 },
- { x: 1_637_368_020, y: 0 },
- { x: 1_637_368_080, y: 0 },
- { x: 1_637_368_140, y: 0 },
- { x: 1_637_368_200, y: 0 },
- { x: 1_637_368_260, y: 0 },
- { x: 1_637_368_320, y: 0 },
- { x: 1_637_368_380, y: 0 },
- { x: 1_637_368_440, y: 0 },
- { x: 1_637_368_500, y: 0 },
- { x: 1_637_368_560, y: 0 },
- { x: 1_637_368_620, y: 0 },
- { x: 1_637_368_680, y: 0 },
- { x: 1_637_368_740, y: 0 },
- { x: 1_637_368_800, y: 0 },
- { x: 1_637_368_860, y: 0 },
- { x: 1_637_368_920, y: 0 },
- { x: 1_637_368_980, y: 0 },
- { x: 1_637_369_040, y: 0 },
- { x: 1_637_369_100, y: 0 },
- { x: 1_637_369_160, y: 0 },
- { x: 1_637_369_220, y: 0 },
- { x: 1_637_369_280, y: 0 },
- { x: 1_637_369_340, y: 0 },
- { x: 1_637_369_400, y: 0 },
- { x: 1_637_369_460, y: 0 },
- { x: 1_637_369_520, y: 0 },
- { x: 1_637_369_580, y: 0 },
- { x: 1_637_369_640, y: 0 },
- { x: 1_637_369_700, y: 0 },
- { x: 1_637_369_760, y: 0 },
- { x: 1_637_369_820, y: 0 },
- { x: 1_637_369_880, y: 0 },
- { x: 1_637_369_940, y: 0 },
- { x: 1_637_370_000, y: 0 },
- { x: 1_637_370_060, y: 0 },
- { x: 1_637_370_120, y: 0 },
- { x: 1_637_370_180, y: 0 },
- ],
- unit: '个',
- },
- {
- name: 'alerttemplates.aiops.alauda.io',
- values: [
- { x: 1_637_366_580, y: 13 },
- { x: 1_637_366_640, y: 13 },
- { x: 1_637_366_700, y: 13 },
- { x: 1_637_366_760, y: 13 },
- { x: 1_637_366_820, y: 13 },
- { x: 1_637_366_880, y: 13 },
- { x: 1_637_366_940, y: 13 },
- { x: 1_637_367_000, y: 13 },
- { x: 1_637_367_060, y: 13 },
- { x: 1_637_367_120, y: 13 },
- { x: 1_637_367_180, y: 13 },
- { x: 1_637_367_240, y: 13 },
- { x: 1_637_367_300, y: 13 },
- { x: 1_637_367_360, y: 13 },
- { x: 1_637_367_420, y: 13 },
- { x: 1_637_367_480, y: 13 },
- { x: 1_637_367_540, y: 13 },
- { x: 1_637_367_600, y: 13 },
- { x: 1_637_367_660, y: 13 },
- { x: 1_637_367_720, y: 13 },
- { x: 1_637_367_780, y: 13 },
- { x: 1_637_367_840, y: 13 },
- { x: 1_637_367_900, y: 13 },
- { x: 1_637_367_960, y: 13 },
- { x: 1_637_368_020, y: 13 },
- { x: 1_637_368_080, y: 13 },
- { x: 1_637_368_140, y: 13 },
- { x: 1_637_368_200, y: 13 },
- { x: 1_637_368_260, y: 13 },
- { x: 1_637_368_320, y: 13 },
- { x: 1_637_368_380, y: 13 },
- { x: 1_637_368_440, y: 13 },
- { x: 1_637_368_500, y: 13 },
- { x: 1_637_368_560, y: 13 },
- { x: 1_637_368_620, y: 13 },
- { x: 1_637_368_680, y: 13 },
- { x: 1_637_368_740, y: 13 },
- { x: 1_637_368_800, y: 13 },
- { x: 1_637_368_860, y: 13 },
- { x: 1_637_368_920, y: 13 },
- { x: 1_637_368_980, y: 13 },
- { x: 1_637_369_040, y: 13 },
- { x: 1_637_369_100, y: 13 },
- { x: 1_637_369_160, y: 13 },
- { x: 1_637_369_220, y: 13 },
- { x: 1_637_369_280, y: 13 },
- { x: 1_637_369_340, y: 13 },
- { x: 1_637_369_400, y: 13 },
- { x: 1_637_369_460, y: 13 },
- { x: 1_637_369_520, y: 13 },
- { x: 1_637_369_580, y: 13 },
- { x: 1_637_369_640, y: 13 },
- { x: 1_637_369_700, y: 13 },
- { x: 1_637_369_760, y: 13 },
- { x: 1_637_369_820, y: 13 },
- { x: 1_637_369_880, y: 13 },
- { x: 1_637_369_940, y: 13 },
- { x: 1_637_370_000, y: 13 },
- { x: 1_637_370_060, y: 13 },
- { x: 1_637_370_120, y: 13 },
- { x: 1_637_370_180, y: 13 },
- ],
- unit: '个',
- },
- {
- name: 'apiattributes.asm.alauda.io',
- values: [
- { x: 1_637_366_580, y: 0 },
- { x: 1_637_366_640, y: 0 },
- { x: 1_637_366_700, y: 0 },
- { x: 1_637_366_760, y: 0 },
- { x: 1_637_366_820, y: 0 },
- { x: 1_637_366_880, y: 0 },
- { x: 1_637_366_940, y: 0 },
- { x: 1_637_367_000, y: 0 },
- { x: 1_637_367_060, y: 0 },
- { x: 1_637_367_120, y: 0 },
- { x: 1_637_367_180, y: 0 },
- { x: 1_637_367_240, y: 0 },
- { x: 1_637_367_300, y: 0 },
- { x: 1_637_367_360, y: 0 },
- { x: 1_637_367_420, y: 0 },
- { x: 1_637_367_480, y: 0 },
- { x: 1_637_367_540, y: 0 },
- { x: 1_637_367_600, y: 0 },
- { x: 1_637_367_660, y: 0 },
- { x: 1_637_367_720, y: 0 },
- { x: 1_637_367_780, y: 0 },
- { x: 1_637_367_840, y: 0 },
- { x: 1_637_367_900, y: 0 },
- { x: 1_637_367_960, y: 0 },
- { x: 1_637_368_020, y: 0 },
- { x: 1_637_368_080, y: 0 },
- { x: 1_637_368_140, y: 0 },
- { x: 1_637_368_200, y: 0 },
- { x: 1_637_368_260, y: 0 },
- { x: 1_637_368_320, y: 0 },
- { x: 1_637_368_380, y: 0 },
- { x: 1_637_368_440, y: 0 },
- { x: 1_637_368_500, y: 0 },
- { x: 1_637_368_560, y: 0 },
- { x: 1_637_368_620, y: 0 },
- { x: 1_637_368_680, y: 0 },
- { x: 1_637_368_740, y: 0 },
- { x: 1_637_368_800, y: 0 },
- { x: 1_637_368_860, y: 0 },
- { x: 1_637_368_920, y: 0 },
- { x: 1_637_368_980, y: 0 },
- { x: 1_637_369_040, y: 0 },
- { x: 1_637_369_100, y: 0 },
- { x: 1_637_369_160, y: 0 },
- { x: 1_637_369_220, y: 0 },
- { x: 1_637_369_280, y: 0 },
- { x: 1_637_369_340, y: 0 },
- { x: 1_637_369_400, y: 0 },
- { x: 1_637_369_460, y: 0 },
- { x: 1_637_369_520, y: 0 },
- { x: 1_637_369_580, y: 0 },
- { x: 1_637_369_640, y: 0 },
- { x: 1_637_369_700, y: 0 },
- { x: 1_637_369_760, y: 0 },
- { x: 1_637_369_820, y: 0 },
- { x: 1_637_369_880, y: 0 },
- { x: 1_637_369_940, y: 0 },
- { x: 1_637_370_000, y: 0 },
- { x: 1_637_370_060, y: 0 },
- { x: 1_637_370_120, y: 0 },
- { x: 1_637_370_180, y: 0 },
- ],
- unit: '个',
- },
- {
- name: 'apiservices.apiregistration.k8s.io',
- values: [
- { x: 1_637_366_580, y: 120 },
- { x: 1_637_366_640, y: 120 },
- { x: 1_637_366_700, y: 120 },
- { x: 1_637_366_760, y: 120 },
- { x: 1_637_366_820, y: 120 },
- { x: 1_637_366_880, y: 120 },
- { x: 1_637_366_940, y: 120 },
- { x: 1_637_367_000, y: 120 },
- { x: 1_637_367_060, y: 120 },
- { x: 1_637_367_120, y: 120 },
- { x: 1_637_367_180, y: 120 },
- { x: 1_637_367_240, y: 120 },
- { x: 1_637_367_300, y: 120 },
- { x: 1_637_367_360, y: 120 },
- { x: 1_637_367_420, y: 120 },
- { x: 1_637_367_480, y: 120 },
- { x: 1_637_367_540, y: 120 },
- { x: 1_637_367_600, y: 120 },
- { x: 1_637_367_660, y: 120 },
- { x: 1_637_367_720, y: 120 },
- { x: 1_637_367_780, y: 120 },
- { x: 1_637_367_840, y: 120 },
- { x: 1_637_367_900, y: 120 },
- { x: 1_637_367_960, y: 120 },
- { x: 1_637_368_020, y: 120 },
- { x: 1_637_368_080, y: 120 },
- { x: 1_637_368_140, y: 120 },
- { x: 1_637_368_200, y: 120 },
- { x: 1_637_368_260, y: 120 },
- { x: 1_637_368_320, y: 120 },
- { x: 1_637_368_380, y: 120 },
- { x: 1_637_368_440, y: 120 },
- { x: 1_637_368_500, y: 120 },
- { x: 1_637_368_560, y: 120 },
- { x: 1_637_368_620, y: 120 },
- { x: 1_637_368_680, y: 120 },
- { x: 1_637_368_740, y: 120 },
- { x: 1_637_368_800, y: 120 },
- { x: 1_637_368_860, y: 120 },
- { x: 1_637_368_920, y: 120 },
- { x: 1_637_368_980, y: 120 },
- { x: 1_637_369_040, y: 120 },
- { x: 1_637_369_100, y: 120 },
- { x: 1_637_369_160, y: 120 },
- { x: 1_637_369_220, y: 120 },
- { x: 1_637_369_280, y: 120 },
- { x: 1_637_369_340, y: 120 },
- { x: 1_637_369_400, y: 120 },
- { x: 1_637_369_460, y: 120 },
- { x: 1_637_369_520, y: 120 },
- { x: 1_637_369_580, y: 120 },
- { x: 1_637_369_640, y: 120 },
- { x: 1_637_369_700, y: 120 },
- { x: 1_637_369_760, y: 120 },
- { x: 1_637_369_820, y: 120 },
- { x: 1_637_369_880, y: 120 },
- { x: 1_637_369_940, y: 120 },
- { x: 1_637_370_000, y: 120 },
- { x: 1_637_370_060, y: 120 },
- { x: 1_637_370_120, y: 120 },
- { x: 1_637_370_180, y: 120 },
- ],
- unit: '个',
- },
- {
- name: 'appconfigs.asm.alauda.io',
- values: [
- { x: 1_637_366_580, y: 0 },
- { x: 1_637_366_640, y: 0 },
- { x: 1_637_366_700, y: 0 },
- { x: 1_637_366_760, y: 0 },
- { x: 1_637_366_820, y: 0 },
- { x: 1_637_366_880, y: 0 },
- { x: 1_637_366_940, y: 0 },
- { x: 1_637_367_000, y: 0 },
- { x: 1_637_367_060, y: 0 },
- { x: 1_637_367_120, y: 0 },
- { x: 1_637_367_180, y: 0 },
- { x: 1_637_367_240, y: 0 },
- { x: 1_637_367_300, y: 0 },
- { x: 1_637_367_360, y: 0 },
- { x: 1_637_367_420, y: 0 },
- { x: 1_637_367_480, y: 0 },
- { x: 1_637_367_540, y: 0 },
- { x: 1_637_367_600, y: 0 },
- { x: 1_637_367_660, y: 0 },
- { x: 1_637_367_720, y: 0 },
- { x: 1_637_367_780, y: 0 },
- { x: 1_637_367_840, y: 0 },
- { x: 1_637_367_900, y: 0 },
- { x: 1_637_367_960, y: 0 },
- { x: 1_637_368_020, y: 0 },
- { x: 1_637_368_080, y: 0 },
- { x: 1_637_368_140, y: 0 },
- { x: 1_637_368_200, y: 0 },
- { x: 1_637_368_260, y: 0 },
- { x: 1_637_368_320, y: 0 },
- { x: 1_637_368_380, y: 0 },
- { x: 1_637_368_440, y: 0 },
- { x: 1_637_368_500, y: 0 },
- { x: 1_637_368_560, y: 0 },
- { x: 1_637_368_620, y: 0 },
- { x: 1_637_368_680, y: 0 },
- { x: 1_637_368_740, y: 0 },
- { x: 1_637_368_800, y: 0 },
- { x: 1_637_368_860, y: 0 },
- { x: 1_637_368_920, y: 0 },
- { x: 1_637_368_980, y: 0 },
- { x: 1_637_369_040, y: 0 },
- { x: 1_637_369_100, y: 0 },
- { x: 1_637_369_160, y: 0 },
- { x: 1_637_369_220, y: 0 },
- { x: 1_637_369_280, y: 0 },
- { x: 1_637_369_340, y: 0 },
- { x: 1_637_369_400, y: 0 },
- { x: 1_637_369_460, y: 0 },
- { x: 1_637_369_520, y: 0 },
- { x: 1_637_369_580, y: 0 },
- { x: 1_637_369_640, y: 0 },
- { x: 1_637_369_700, y: 0 },
- { x: 1_637_369_760, y: 0 },
- { x: 1_637_369_820, y: 0 },
- { x: 1_637_369_880, y: 0 },
- { x: 1_637_369_940, y: 0 },
- { x: 1_637_370_000, y: 0 },
- { x: 1_637_370_060, y: 0 },
- { x: 1_637_370_120, y: 0 },
- { x: 1_637_370_180, y: 0 },
- ],
- unit: '个',
- },
- {
- name: 'appdeployments.core.oam.dev',
- values: [
- { x: 1_637_366_580, y: 0 },
- { x: 1_637_366_640, y: 0 },
- { x: 1_637_366_700, y: 0 },
- { x: 1_637_366_760, y: 0 },
- { x: 1_637_366_820, y: 0 },
- { x: 1_637_366_880, y: 0 },
- { x: 1_637_366_940, y: 0 },
- { x: 1_637_367_000, y: 0 },
- { x: 1_637_367_060, y: 0 },
- { x: 1_637_367_120, y: 0 },
- { x: 1_637_367_180, y: 0 },
- { x: 1_637_367_240, y: 0 },
- { x: 1_637_367_300, y: 0 },
- { x: 1_637_367_360, y: 0 },
- { x: 1_637_367_420, y: 0 },
- { x: 1_637_367_480, y: 0 },
- { x: 1_637_367_540, y: 0 },
- { x: 1_637_367_600, y: 0 },
- { x: 1_637_367_660, y: 0 },
- { x: 1_637_367_720, y: 0 },
- { x: 1_637_367_780, y: 0 },
- { x: 1_637_367_840, y: 0 },
- { x: 1_637_367_900, y: 0 },
- { x: 1_637_367_960, y: 0 },
- { x: 1_637_368_020, y: 0 },
- { x: 1_637_368_080, y: 0 },
- { x: 1_637_368_140, y: 0 },
- { x: 1_637_368_200, y: 0 },
- { x: 1_637_368_260, y: 0 },
- { x: 1_637_368_320, y: 0 },
- { x: 1_637_368_380, y: 0 },
- { x: 1_637_368_440, y: 0 },
- { x: 1_637_368_500, y: 0 },
- { x: 1_637_368_560, y: 0 },
- { x: 1_637_368_620, y: 0 },
- { x: 1_637_368_680, y: 0 },
- { x: 1_637_368_740, y: 0 },
- { x: 1_637_368_800, y: 0 },
- { x: 1_637_368_860, y: 0 },
- { x: 1_637_368_920, y: 0 },
- { x: 1_637_368_980, y: 0 },
- { x: 1_637_369_040, y: 0 },
- { x: 1_637_369_100, y: 0 },
- { x: 1_637_369_160, y: 0 },
- { x: 1_637_369_220, y: 0 },
- { x: 1_637_369_280, y: 0 },
- { x: 1_637_369_340, y: 0 },
- { x: 1_637_369_400, y: 0 },
- { x: 1_637_369_460, y: 0 },
- { x: 1_637_369_520, y: 0 },
- { x: 1_637_369_580, y: 0 },
- { x: 1_637_369_640, y: 0 },
- { x: 1_637_369_700, y: 0 },
- { x: 1_637_369_760, y: 0 },
- { x: 1_637_369_820, y: 0 },
- { x: 1_637_369_880, y: 0 },
- { x: 1_637_369_940, y: 0 },
- { x: 1_637_370_000, y: 0 },
- { x: 1_637_370_060, y: 0 },
- { x: 1_637_370_120, y: 0 },
- { x: 1_637_370_180, y: 0 },
- ],
- unit: '个',
- },
- {
- name: 'applicationconfigurations.core.oam.dev',
- values: [
- { x: 1_637_366_580, y: 0 },
- { x: 1_637_366_640, y: 0 },
- { x: 1_637_366_700, y: 0 },
- { x: 1_637_366_760, y: 0 },
- { x: 1_637_366_820, y: 0 },
- { x: 1_637_366_880, y: 0 },
- { x: 1_637_366_940, y: 0 },
- { x: 1_637_367_000, y: 0 },
- { x: 1_637_367_060, y: 0 },
- { x: 1_637_367_120, y: 0 },
- { x: 1_637_367_180, y: 0 },
- { x: 1_637_367_240, y: 0 },
- { x: 1_637_367_300, y: 0 },
- { x: 1_637_367_360, y: 0 },
- { x: 1_637_367_420, y: 0 },
- { x: 1_637_367_480, y: 0 },
- { x: 1_637_367_540, y: 0 },
- { x: 1_637_367_600, y: 0 },
- { x: 1_637_367_660, y: 0 },
- { x: 1_637_367_720, y: 0 },
- { x: 1_637_367_780, y: 0 },
- { x: 1_637_367_840, y: 0 },
- { x: 1_637_367_900, y: 0 },
- { x: 1_637_367_960, y: 0 },
- { x: 1_637_368_020, y: 0 },
- { x: 1_637_368_080, y: 0 },
- { x: 1_637_368_140, y: 0 },
- { x: 1_637_368_200, y: 0 },
- { x: 1_637_368_260, y: 0 },
- { x: 1_637_368_320, y: 0 },
- { x: 1_637_368_380, y: 0 },
- { x: 1_637_368_440, y: 0 },
- { x: 1_637_368_500, y: 0 },
- { x: 1_637_368_560, y: 0 },
- { x: 1_637_368_620, y: 0 },
- { x: 1_637_368_680, y: 0 },
- { x: 1_637_368_740, y: 0 },
- { x: 1_637_368_800, y: 0 },
- { x: 1_637_368_860, y: 0 },
- { x: 1_637_368_920, y: 0 },
- { x: 1_637_368_980, y: 0 },
- { x: 1_637_369_040, y: 0 },
- { x: 1_637_369_100, y: 0 },
- { x: 1_637_369_160, y: 0 },
- { x: 1_637_369_220, y: 0 },
- { x: 1_637_369_280, y: 0 },
- { x: 1_637_369_340, y: 0 },
- { x: 1_637_369_400, y: 0 },
- { x: 1_637_369_460, y: 0 },
- { x: 1_637_369_520, y: 0 },
- { x: 1_637_369_580, y: 0 },
- { x: 1_637_369_640, y: 0 },
- { x: 1_637_369_700, y: 0 },
- { x: 1_637_369_760, y: 0 },
- { x: 1_637_369_820, y: 0 },
- { x: 1_637_369_880, y: 0 },
- { x: 1_637_369_940, y: 0 },
- { x: 1_637_370_000, y: 0 },
- { x: 1_637_370_060, y: 0 },
- { x: 1_637_370_120, y: 0 },
- { x: 1_637_370_180, y: 0 },
- ],
- unit: '个',
- },
- {
- name: 'applicationcontexts.core.oam.dev',
- values: [
- { x: 1_637_366_580, y: 0 },
- { x: 1_637_366_640, y: 0 },
- { x: 1_637_366_700, y: 0 },
- { x: 1_637_366_760, y: 0 },
- { x: 1_637_366_820, y: 0 },
- { x: 1_637_366_880, y: 0 },
- { x: 1_637_366_940, y: 0 },
- { x: 1_637_367_000, y: 0 },
- { x: 1_637_367_060, y: 0 },
- { x: 1_637_367_120, y: 0 },
- { x: 1_637_367_180, y: 0 },
- { x: 1_637_367_240, y: 0 },
- { x: 1_637_367_300, y: 0 },
- { x: 1_637_367_360, y: 0 },
- { x: 1_637_367_420, y: 0 },
- { x: 1_637_367_480, y: 0 },
- { x: 1_637_367_540, y: 0 },
- { x: 1_637_367_600, y: 0 },
- { x: 1_637_367_660, y: 0 },
- { x: 1_637_367_720, y: 0 },
- { x: 1_637_367_780, y: 0 },
- { x: 1_637_367_840, y: 0 },
- { x: 1_637_367_900, y: 0 },
- { x: 1_637_367_960, y: 0 },
- { x: 1_637_368_020, y: 0 },
- { x: 1_637_368_080, y: 0 },
- { x: 1_637_368_140, y: 0 },
- { x: 1_637_368_200, y: 0 },
- { x: 1_637_368_260, y: 0 },
- { x: 1_637_368_320, y: 0 },
- { x: 1_637_368_380, y: 0 },
- { x: 1_637_368_440, y: 0 },
- { x: 1_637_368_500, y: 0 },
- { x: 1_637_368_560, y: 0 },
- { x: 1_637_368_620, y: 0 },
- { x: 1_637_368_680, y: 0 },
- { x: 1_637_368_740, y: 0 },
- { x: 1_637_368_800, y: 0 },
- { x: 1_637_368_860, y: 0 },
- { x: 1_637_368_920, y: 0 },
- { x: 1_637_368_980, y: 0 },
- { x: 1_637_369_040, y: 0 },
- { x: 1_637_369_100, y: 0 },
- { x: 1_637_369_160, y: 0 },
- { x: 1_637_369_220, y: 0 },
- { x: 1_637_369_280, y: 0 },
- { x: 1_637_369_340, y: 0 },
- { x: 1_637_369_400, y: 0 },
- { x: 1_637_369_460, y: 0 },
- { x: 1_637_369_520, y: 0 },
- { x: 1_637_369_580, y: 0 },
- { x: 1_637_369_640, y: 0 },
- { x: 1_637_369_700, y: 0 },
- { x: 1_637_369_760, y: 0 },
- { x: 1_637_369_820, y: 0 },
- { x: 1_637_369_880, y: 0 },
- { x: 1_637_369_940, y: 0 },
- { x: 1_637_370_000, y: 0 },
- { x: 1_637_370_060, y: 0 },
- { x: 1_637_370_120, y: 0 },
- { x: 1_637_370_180, y: 0 },
- ],
- unit: '个',
- },
- {
- name: 'applicationhistories.app.k8s.io',
- values: [
- { x: 1_637_366_580, y: 2 },
- { x: 1_637_366_640, y: 2 },
- { x: 1_637_366_700, y: 2 },
- { x: 1_637_366_760, y: 2 },
- { x: 1_637_366_820, y: 2 },
- { x: 1_637_366_880, y: 2 },
- { x: 1_637_366_940, y: 2 },
- { x: 1_637_367_000, y: 2 },
- { x: 1_637_367_060, y: 2 },
- { x: 1_637_367_120, y: 2 },
- { x: 1_637_367_180, y: 2 },
- { x: 1_637_367_240, y: 2 },
- { x: 1_637_367_300, y: 2 },
- { x: 1_637_367_360, y: 2 },
- { x: 1_637_367_420, y: 2 },
- { x: 1_637_367_480, y: 2 },
- { x: 1_637_367_540, y: 2 },
- { x: 1_637_367_600, y: 2 },
- { x: 1_637_367_660, y: 2 },
- { x: 1_637_367_720, y: 2 },
- { x: 1_637_367_780, y: 2 },
- { x: 1_637_367_840, y: 2 },
- { x: 1_637_367_900, y: 2 },
- { x: 1_637_367_960, y: 2 },
- { x: 1_637_368_020, y: 2 },
- { x: 1_637_368_080, y: 2 },
- { x: 1_637_368_140, y: 2 },
- { x: 1_637_368_200, y: 2 },
- { x: 1_637_368_260, y: 2 },
- { x: 1_637_368_320, y: 2 },
- { x: 1_637_368_380, y: 2 },
- { x: 1_637_368_440, y: 2 },
- { x: 1_637_368_500, y: 2 },
- { x: 1_637_368_560, y: 2 },
- { x: 1_637_368_620, y: 2 },
- { x: 1_637_368_680, y: 2 },
- { x: 1_637_368_740, y: 2 },
- { x: 1_637_368_800, y: 2 },
- { x: 1_637_368_860, y: 2 },
- { x: 1_637_368_920, y: 2 },
- { x: 1_637_368_980, y: 2 },
- { x: 1_637_369_040, y: 2 },
- { x: 1_637_369_100, y: 2 },
- { x: 1_637_369_160, y: 2 },
- { x: 1_637_369_220, y: 2 },
- { x: 1_637_369_280, y: 2 },
- { x: 1_637_369_340, y: 2 },
- { x: 1_637_369_400, y: 2 },
- { x: 1_637_369_460, y: 2 },
- { x: 1_637_369_520, y: 2 },
- { x: 1_637_369_580, y: 2 },
- { x: 1_637_369_640, y: 2 },
- { x: 1_637_369_700, y: 2 },
- { x: 1_637_369_760, y: 2 },
- { x: 1_637_369_820, y: 2 },
- { x: 1_637_369_880, y: 2 },
- { x: 1_637_369_940, y: 2 },
- { x: 1_637_370_000, y: 2 },
- { x: 1_637_370_060, y: 2 },
- { x: 1_637_370_120, y: 2 },
- { x: 1_637_370_180, y: 2 },
- ],
- unit: '个',
- },
- {
- name: 'applicationrevisions.core.oam.dev',
- values: [
- { x: 1_637_366_580, y: 0 },
- { x: 1_637_366_640, y: 0 },
- { x: 1_637_366_700, y: 0 },
- { x: 1_637_366_760, y: 0 },
- { x: 1_637_366_820, y: 0 },
- { x: 1_637_366_880, y: 0 },
- { x: 1_637_366_940, y: 0 },
- { x: 1_637_367_000, y: 0 },
- { x: 1_637_367_060, y: 0 },
- { x: 1_637_367_120, y: 0 },
- { x: 1_637_367_180, y: 0 },
- { x: 1_637_367_240, y: 0 },
- { x: 1_637_367_300, y: 0 },
- { x: 1_637_367_360, y: 0 },
- { x: 1_637_367_420, y: 0 },
- { x: 1_637_367_480, y: 0 },
- { x: 1_637_367_540, y: 0 },
- { x: 1_637_367_600, y: 0 },
- { x: 1_637_367_660, y: 0 },
- { x: 1_637_367_720, y: 0 },
- { x: 1_637_367_780, y: 0 },
- { x: 1_637_367_840, y: 0 },
- { x: 1_637_367_900, y: 0 },
- { x: 1_637_367_960, y: 0 },
- { x: 1_637_368_020, y: 0 },
- { x: 1_637_368_080, y: 0 },
- { x: 1_637_368_140, y: 0 },
- { x: 1_637_368_200, y: 0 },
- { x: 1_637_368_260, y: 0 },
- { x: 1_637_368_320, y: 0 },
- { x: 1_637_368_380, y: 0 },
- { x: 1_637_368_440, y: 0 },
- { x: 1_637_368_500, y: 0 },
- { x: 1_637_368_560, y: 0 },
- { x: 1_637_368_620, y: 0 },
- { x: 1_637_368_680, y: 0 },
- { x: 1_637_368_740, y: 0 },
- { x: 1_637_368_800, y: 0 },
- { x: 1_637_368_860, y: 0 },
- { x: 1_637_368_920, y: 0 },
- { x: 1_637_368_980, y: 0 },
- { x: 1_637_369_040, y: 0 },
- { x: 1_637_369_100, y: 0 },
- { x: 1_637_369_160, y: 0 },
- { x: 1_637_369_220, y: 0 },
- { x: 1_637_369_280, y: 0 },
- { x: 1_637_369_340, y: 0 },
- { x: 1_637_369_400, y: 0 },
- { x: 1_637_369_460, y: 0 },
- { x: 1_637_369_520, y: 0 },
- { x: 1_637_369_580, y: 0 },
- { x: 1_637_369_640, y: 0 },
- { x: 1_637_369_700, y: 0 },
- { x: 1_637_369_760, y: 0 },
- { x: 1_637_369_820, y: 0 },
- { x: 1_637_369_880, y: 0 },
- { x: 1_637_369_940, y: 0 },
- { x: 1_637_370_000, y: 0 },
- { x: 1_637_370_060, y: 0 },
- { x: 1_637_370_120, y: 0 },
- { x: 1_637_370_180, y: 0 },
- ],
- unit: '个',
- },
- {
- name: 'applications.app.k8s.io',
- values: [
- { x: 1_637_366_580, y: 2 },
- { x: 1_637_366_640, y: 2 },
- { x: 1_637_366_700, y: 2 },
- { x: 1_637_366_760, y: 2 },
- { x: 1_637_366_820, y: 2 },
- { x: 1_637_366_880, y: 2 },
- { x: 1_637_366_940, y: 2 },
- { x: 1_637_367_000, y: 2 },
- { x: 1_637_367_060, y: 2 },
- { x: 1_637_367_120, y: 2 },
- { x: 1_637_367_180, y: 2 },
- { x: 1_637_367_240, y: 2 },
- { x: 1_637_367_300, y: 2 },
- { x: 1_637_367_360, y: 2 },
- { x: 1_637_367_420, y: 2 },
- { x: 1_637_367_480, y: 2 },
- { x: 1_637_367_540, y: 2 },
- { x: 1_637_367_600, y: 2 },
- { x: 1_637_367_660, y: 2 },
- { x: 1_637_367_720, y: 2 },
- { x: 1_637_367_780, y: 2 },
- { x: 1_637_367_840, y: 2 },
- { x: 1_637_367_900, y: 2 },
- { x: 1_637_367_960, y: 2 },
- { x: 1_637_368_020, y: 2 },
- { x: 1_637_368_080, y: 2 },
- { x: 1_637_368_140, y: 2 },
- { x: 1_637_368_200, y: 2 },
- { x: 1_637_368_260, y: 2 },
- { x: 1_637_368_320, y: 2 },
- { x: 1_637_368_380, y: 2 },
- { x: 1_637_368_440, y: 2 },
- { x: 1_637_368_500, y: 2 },
- { x: 1_637_368_560, y: 2 },
- { x: 1_637_368_620, y: 2 },
- { x: 1_637_368_680, y: 2 },
- { x: 1_637_368_740, y: 2 },
- { x: 1_637_368_800, y: 2 },
- { x: 1_637_368_860, y: 2 },
- { x: 1_637_368_920, y: 2 },
- { x: 1_637_368_980, y: 2 },
- { x: 1_637_369_040, y: 2 },
- { x: 1_637_369_100, y: 2 },
- { x: 1_637_369_160, y: 2 },
- { x: 1_637_369_220, y: 2 },
- { x: 1_637_369_280, y: 2 },
- { x: 1_637_369_340, y: 2 },
- { x: 1_637_369_400, y: 2 },
- { x: 1_637_369_460, y: 2 },
- { x: 1_637_369_520, y: 2 },
- { x: 1_637_369_580, y: 2 },
- { x: 1_637_369_640, y: 2 },
- { x: 1_637_369_700, y: 2 },
- { x: 1_637_369_760, y: 2 },
- { x: 1_637_369_820, y: 2 },
- { x: 1_637_369_880, y: 2 },
- { x: 1_637_369_940, y: 2 },
- { x: 1_637_370_000, y: 2 },
- { x: 1_637_370_060, y: 2 },
- { x: 1_637_370_120, y: 2 },
- { x: 1_637_370_180, y: 2 },
- ],
- unit: '个',
- },
- {
- name: 'applications.core.oam.dev',
- values: [
- { x: 1_637_366_580, y: 0 },
- { x: 1_637_366_640, y: 0 },
- { x: 1_637_366_700, y: 0 },
- { x: 1_637_366_760, y: 0 },
- { x: 1_637_366_820, y: 0 },
- { x: 1_637_366_880, y: 0 },
- { x: 1_637_366_940, y: 0 },
- { x: 1_637_367_000, y: 0 },
- { x: 1_637_367_060, y: 0 },
- { x: 1_637_367_120, y: 0 },
- { x: 1_637_367_180, y: 0 },
- { x: 1_637_367_240, y: 0 },
- { x: 1_637_367_300, y: 0 },
- { x: 1_637_367_360, y: 0 },
- { x: 1_637_367_420, y: 0 },
- { x: 1_637_367_480, y: 0 },
- { x: 1_637_367_540, y: 0 },
- { x: 1_637_367_600, y: 0 },
- { x: 1_637_367_660, y: 0 },
- { x: 1_637_367_720, y: 0 },
- { x: 1_637_367_780, y: 0 },
- { x: 1_637_367_840, y: 0 },
- { x: 1_637_367_900, y: 0 },
- { x: 1_637_367_960, y: 0 },
- { x: 1_637_368_020, y: 0 },
- { x: 1_637_368_080, y: 0 },
- { x: 1_637_368_140, y: 0 },
- { x: 1_637_368_200, y: 0 },
- { x: 1_637_368_260, y: 0 },
- { x: 1_637_368_320, y: 0 },
- { x: 1_637_368_380, y: 0 },
- { x: 1_637_368_440, y: 0 },
- { x: 1_637_368_500, y: 0 },
- { x: 1_637_368_560, y: 0 },
- { x: 1_637_368_620, y: 0 },
- { x: 1_637_368_680, y: 0 },
- { x: 1_637_368_740, y: 0 },
- { x: 1_637_368_800, y: 0 },
- { x: 1_637_368_860, y: 0 },
- { x: 1_637_368_920, y: 0 },
- { x: 1_637_368_980, y: 0 },
- { x: 1_637_369_040, y: 0 },
- { x: 1_637_369_100, y: 0 },
- { x: 1_637_369_160, y: 0 },
- { x: 1_637_369_220, y: 0 },
- { x: 1_637_369_280, y: 0 },
- { x: 1_637_369_340, y: 0 },
- { x: 1_637_369_400, y: 0 },
- { x: 1_637_369_460, y: 0 },
- { x: 1_637_369_520, y: 0 },
- { x: 1_637_369_580, y: 0 },
- { x: 1_637_369_640, y: 0 },
- { x: 1_637_369_700, y: 0 },
- { x: 1_637_369_760, y: 0 },
- { x: 1_637_369_820, y: 0 },
- { x: 1_637_369_880, y: 0 },
- { x: 1_637_369_940, y: 0 },
- { x: 1_637_370_000, y: 0 },
- { x: 1_637_370_060, y: 0 },
- { x: 1_637_370_120, y: 0 },
- { x: 1_637_370_180, y: 0 },
- ],
- unit: '个',
- },
- {
- name: 'appreleases.operator.alauda.io',
- values: [
- { x: 1_637_366_580, y: 19 },
- { x: 1_637_366_640, y: 19 },
- { x: 1_637_366_700, y: 19 },
- { x: 1_637_366_760, y: 19 },
- { x: 1_637_366_820, y: 19 },
- { x: 1_637_366_880, y: 19 },
- { x: 1_637_366_940, y: 19 },
- { x: 1_637_367_000, y: 19 },
- { x: 1_637_367_060, y: 19 },
- { x: 1_637_367_120, y: 19 },
- { x: 1_637_367_180, y: 19 },
- { x: 1_637_367_240, y: 19 },
- { x: 1_637_367_300, y: 19 },
- { x: 1_637_367_360, y: 19 },
- { x: 1_637_367_420, y: 19 },
- { x: 1_637_367_480, y: 19 },
- { x: 1_637_367_540, y: 19 },
- { x: 1_637_367_600, y: 19 },
- { x: 1_637_367_660, y: 19 },
- { x: 1_637_367_720, y: 19 },
- { x: 1_637_367_780, y: 19 },
- { x: 1_637_367_840, y: 19 },
- { x: 1_637_367_900, y: 19 },
- { x: 1_637_367_960, y: 19 },
- { x: 1_637_368_020, y: 19 },
- { x: 1_637_368_080, y: 19 },
- { x: 1_637_368_140, y: 19 },
- { x: 1_637_368_200, y: 19 },
- { x: 1_637_368_260, y: 19 },
- { x: 1_637_368_320, y: 19 },
- { x: 1_637_368_380, y: 19 },
- { x: 1_637_368_440, y: 19 },
- { x: 1_637_368_500, y: 19 },
- { x: 1_637_368_560, y: 19 },
- { x: 1_637_368_620, y: 19 },
- { x: 1_637_368_680, y: 19 },
- { x: 1_637_368_740, y: 19 },
- { x: 1_637_368_800, y: 19 },
- { x: 1_637_368_860, y: 19 },
- { x: 1_637_368_920, y: 19 },
- { x: 1_637_368_980, y: 19 },
- { x: 1_637_369_040, y: 19 },
- { x: 1_637_369_100, y: 19 },
- { x: 1_637_369_160, y: 19 },
- { x: 1_637_369_220, y: 19 },
- { x: 1_637_369_280, y: 19 },
- { x: 1_637_369_340, y: 19 },
- { x: 1_637_369_400, y: 19 },
- { x: 1_637_369_460, y: 19 },
- { x: 1_637_369_520, y: 19 },
- { x: 1_637_369_580, y: 19 },
- { x: 1_637_369_640, y: 19 },
- { x: 1_637_369_700, y: 19 },
- { x: 1_637_369_760, y: 19 },
- { x: 1_637_369_820, y: 19 },
- { x: 1_637_369_880, y: 19 },
- { x: 1_637_369_940, y: 19 },
- { x: 1_637_370_000, y: 19 },
- { x: 1_637_370_060, y: 19 },
- { x: 1_637_370_120, y: 19 },
- { x: 1_637_370_180, y: 19 },
- ],
- unit: '个',
- },
-];
-
-export const groupPieData = [
- {
- name: '部署',
- value: 20,
- color: '#999',
- },
- {
- name: '有状态',
- value: 20,
- // color: '#0abf5b',
- },
- {
- name: '守护',
- value: 50,
- // color: '#006eff',
- },
-];
-
-export const groupBarData = [
- {
- name: 'deployment',
- values: [
- { x: 'running', y: 1, index: 0, color: '#0abf5b' },
- { x: 'pending', y: 2, index: 1, color: '#006eff' },
- { x: 'stopped', y: 3, index: 2, color: '#999' },
- ],
- },
- {
- name: 'statefulset',
- values: [
- { x: 'running', y: 4, index: 0, color: '#0abf5b' },
- { x: 'pending', y: 2, index: 1, color: '#006eff' },
- { x: 'stopped', y: 1, index: 2, color: '#999' },
- ],
- },
- {
- name: 'daemonset',
- values: [
- { x: 'running', y: 3, index: 0, color: '#0abf5b' },
- { x: 'pending', y: 1, index: 1, color: '#006eff' },
- { x: 'stopped', y: 2, index: 2, color: '#999' },
- ],
- },
-];
-
-export const barData = [
- {
- name: '柱状体',
- values: [
- { x: 1_637_396_220_000, y: 5757 },
- { x: 1_637_396_250_000, y: 8759 },
- { x: 1_637_396_280_000, y: 8941 },
- { x: 1_637_396_310_000, y: 8805 },
- { x: 1_637_396_340_000, y: 8702 },
- { x: 1_637_396_370_000, y: 8712 },
- { x: 1_637_396_400_000, y: 8826 },
- { x: 1_637_396_430_000, y: 8757 },
- { x: 1_637_396_460_000, y: 9162 },
- { x: 1_637_396_490_000, y: 8822 },
- { x: 1_637_396_520_000, y: 8793 },
- // { x: 1637396580000, y: 8761 },
- // { x: 1637396610000, y: 8728 },
- // { x: 1637396640000, y: 8583 },
- // { x: 1637396670000, y: 8780 },
- // { x: 1637396700000, y: 8717 },
- // { x: 1637396730000, y: 8768 },
- // { x: 1637396760000, y: 8781 },
- // { x: 1637396790000, y: 8638 },
- // { x: 1637396820000, y: 8974 },
- // { x: 1637396850000, y: 8516 },
- // { x: 1637396880000, y: 8518 },
- // { x: 1637396910000, y: 8936 },
- // { x: 1637396940000, y: 8684 },
- // { x: 1637396970000, y: 8668 },
- // { x: 1637397000000, y: 8971 },
- // { x: 1637397030000, y: 9703 },
- // { x: 1637397060000, y: 9943 },
- // { x: 1637397090000, y: 10012 },
- // { x: 1637397120000, y: 458 },
- ],
- },
-];
-
-export const ScatterData = [
- {
- name: 'd1',
- values: [
- {
- name: 'bd89adc30926c3341e853db82a4e2b69',
- x: 1_646_983_049_633_887,
- y: 15_897,
- size: 2,
- },
-
- {
- name: '63e6dd73c8258882d416630751af1bbc',
- x: 1_646_983_047_621_645,
- y: 17_442,
- size: 7,
- },
- {
- name: 'a064c92afac5bf2c841d2ffc90d2d557',
- x: 1_646_983_044_430_811,
- y: 13_381,
- size: 2,
- },
- {
- name: 'f8f4518fbe7c849d49f6fe17545be957',
- x: 1_646_983_042_325_872,
- y: 17_858,
- size: 8,
- },
- {
- name: 'b19039ab5ec7f35113ee4d3ce5637139',
- x: 1_646_983_039_139_002,
- y: 12_875,
- size: 3,
- },
- {
- name: '6b9491359263efc45685dc6ae00422d6',
- x: 1_646_983_037_027_884,
- y: 14_174,
- size: 2,
- },
-
- {
- name: '2afc8ca663853ff6a05d5ebb4b39bced',
- x: 1_646_983_033_830_560,
- y: 27_524,
- size: 4,
- },
-
- {
- name: 'a85104881d34b8bd58436c9b06c29956',
- x: 1_646_983_031_735_682,
- y: 43_427,
- size: 2,
- },
-
- {
- name: '6fc8ac16613479be0fe1b295d3687ec8',
- x: 1_646_983_028_630_635,
- y: 17_352,
- size: 2,
- },
-
- {
- name: '99d06ec023ce3be1745a4808af7337bc',
- x: 1_646_983_026_422_212,
- y: 15_486,
- size: 2,
- },
- ],
- },
- {
- name: 'd2',
- values: [
- {
- name: 'bd89adc30926c3341e853db82a4e2b69',
- x: 1_646_983_042_633_887,
- y: 12_897,
- size: 24,
- },
- {
- name: '63e6dd73c8258882d416630751af1bbc',
- x: 1_646_983_045_621_645,
- y: 27_442,
- size: 17,
- },
- {
- name: 'a064c92afac5bf2c841d2ffc90d2d557',
- x: 1_646_983_044_430_811,
- y: 13_381,
- size: 12,
- },
- {
- name: 'f8f4518fbe7c849d49f6fe17545be957',
- x: 1_646_983_042_325_872,
- y: 17_858,
- size: 8,
- },
- {
- name: 'b19039ab5ec7f35113ee4d3ce5637139',
- x: 1_646_983_039_139_002,
- y: 12_875,
- size: 13,
- },
- {
- name: '6b9491359263efc45685dc6ae00422d6',
- x: 1_646_983_037_027_884,
- y: 14_174,
- size: 7,
- },
-
- {
- name: '2afc8ca663853ff6a05d5ebb4b39bced',
- x: 1_646_983_033_830_560,
- y: 27_524,
- size: 19,
- },
-
- {
- name: 'a85104881d34b8bd58436c9b06c29956',
- x: 1_646_983_031_735_682,
- y: 23_427,
- size: 12,
- },
-
- {
- name: '6fc8ac16613479be0fe1b295d3687ec8',
- x: 1_646_983_028_600_635,
- y: 1752,
- size: 2,
- },
-
- {
- name: '99d06ec023ce3be1745a4808af7337bc',
- x: 1_646_983_026_422_212,
- y: 15_486,
- size: 12,
- },
- ],
- },
-];
diff --git a/stories/demo.stories.ts b/stories/demo.stories.ts
new file mode 100644
index 0000000..bda9e61
--- /dev/null
+++ b/stories/demo.stories.ts
@@ -0,0 +1,157 @@
+import addons from '@storybook/addons';
+import { Story, Meta } from '@storybook/html';
+import { DARK_MODE_EVENT_NAME } from 'storybook-dark-mode';
+
+import { dealWithTime, generateTime, generateY } from './utilt';
+
+import { ActionType, Chart, ChartEvent } from '@alauda/chart';
+import 'uplot/dist/uPlot.min.css';
+
+export default {
+ title: 'Demo',
+} as Meta;
+
+let chart: Chart;
+
+const Template: Story = () => {
+ addons.getChannel().on(DARK_MODE_EVENT_NAME, (e: boolean) => {
+ chart?.theme(e ? 'dark' : 'light');
+ });
+
+ setTimeout(() => {
+ const destroy = document.querySelector('#destroy');
+ const init = document.querySelector('#init');
+ const change = document.querySelector('#change');
+ const update = document.querySelector('#update');
+ const total = 60;
+ const step = 720;
+ const start = '2023-01-31 09:00:00';
+ const range1: [number, number] = [0, 100];
+ // const range2: [number, number] = [0, 100];
+ const timeData = generateTime(start, total, step);
+ const yData1 = generateY(total, range1);
+ // let yData2 = generateY(total, range2);
+
+ const d1 = timeData.map((x, i) => ({ x, y: yData1[i] }));
+ // const d2 = timeData.map((x, i) => ({ x, y: yData2[i] }));
+ console.log(JSON.stringify(d1));
+ const data = [
+ {
+ name: 'area1',
+ // color: 'rgb(var(--aui-color-green))',
+ values: d1,
+ },
+ // {
+ // name: 'area2',
+ // values: d2,
+ // },
+ ];
+ function getOp(container: string, data: any): any {
+ return {
+ container,
+ // data: [],
+ data,
+ options: {
+ // title: { text: '1231231231231212312312312312123123123123121231231231231212312312312312123123123123121231231231231212312312312312123123123123121231231231231212312312312312123123123123121231231231231212312312312312123123123123121231231231231212312312312312123123123123121231231231231212312312312312123123123123121231231231231212312312312312123123123123121231231231231212312312312312123123123123121231231231231212312312312312123123123123121231231231231212312312312312' },
+ // title: { text: '11', custom: true },
+
+ // position: 'bottom-right',
+ // }
+ axis: {
+ x: {},
+ // y: {
+ // autoSize: true,
+ // formatter: `{value}%1`,
+ // },
+ },
+ scale: {
+ x: {},
+ y: {},
+ },
+ annotation: {
+ // lineX: {
+ // data: null,
+ // },
+ // lineY: {
+ // data: 1,
+ // text: {
+ // content: 'lineY',
+ // },
+ // },
+ },
+ tooltip: {
+ // showTitle: false
+ titleFormatter: (title: string) =>
+ `${dealWithTime(new Date(Number(title) * 1000))}`,
+ },
+ // tooltip: false,
+ },
+ };
+ }
+ initChart();
+ function initChart() {
+ chart = new Chart(getOp('.chart-area', data));
+ chart.point();
+ chart.render();
+ }
+
+ destroy.addEventListener('click', () => {
+ if (chart) {
+ chart.destroy();
+ }
+ });
+ init.addEventListener('click', () => {
+ initChart();
+ });
+ let l = true;
+ change.addEventListener('click', () => {
+ const timeData = generateTime('2023-01-01 09:00:00', 200, 120);
+ // let yData1 = generateY(200, range1);
+ // let yData2 = generateY(200, range2);
+ // const d1 = timeData.map((x, i) => ({ x, y: yData1[i] }));
+ l = !l;
+ const d2 = timeData.map((x, i) => ({ x, y: l ? null : yData1[i] }));
+ const data = [
+ {
+ name: 'area11',
+ // color: 'rgb(var(--aui-color-green))',
+ values: d2,
+ },
+ {
+ name: 'area2',
+ values: d2,
+ },
+ ];
+ chart.data(data);
+ });
+
+ update.addEventListener('click', () => {
+ chart.interaction('brush-x', {
+ end: [
+ {
+ trigger: ChartEvent.PLOT_MOUSEUP,
+ action: ActionType.BRUSH_X_END,
+ callback: e => {
+ console.log('brush-x', e);
+ },
+ },
+ ],
+ });
+ });
+ });
+
+ return `
+
+
+
+
+
close
+
+ `;
+};
+
+export const Demo = Template.bind({});
diff --git a/stories/gauge.stories.ts b/stories/gauge.stories.ts
new file mode 100644
index 0000000..a903962
--- /dev/null
+++ b/stories/gauge.stories.ts
@@ -0,0 +1,116 @@
+import addons from '@storybook/addons';
+import { Story, Meta } from '@storybook/html';
+import { DARK_MODE_EVENT_NAME } from 'storybook-dark-mode';
+
+import { Chart } from '@alauda/chart';
+import 'uplot/dist/uPlot.min.css';
+
+export default {
+ title: 'Gauge',
+} as Meta;
+
+let chart: Chart;
+
+const Template: Story = () => {
+ addons.getChannel().on(DARK_MODE_EVENT_NAME, (e: boolean) => {
+ chart?.theme(e ? 'dark' : 'light');
+ });
+
+ setTimeout(() => {
+ const groupPieData = [
+ {
+ name: '部署',
+ value: 1,
+ color: '#006eff',
+ util: '%',
+ },
+ ];
+ function getOp(container: string, data: any): any {
+ return {
+ container,
+ // data: [],
+ data,
+ // height: 80,
+ options: {
+ title: {
+ text: '123123',
+ },
+ legend: false,
+ // tooltip: false,
+ gauge: {
+ max: 100,
+ label: {
+ text: '
{value}{data[0].util}
',
+ description: 'asd12312312312',
+ // position: {
+ // y: 10,
+ // },
+ },
+ colors: [
+ [0, '#73BF69'],
+ [20, '#EAB839'],
+ [70, 'red'],
+ ],
+ // text: {
+ // show: true,
+ // size: 12,
+ // // color: 'red' || () => 'red'
+ // },
+ },
+ },
+ };
+ }
+ initChart();
+ function initChart() {
+
+ chart = new Chart(getOp('.chart', groupPieData));
+ chart.gauge({
+ // outerRadius: 60,
+ // innerRadius: 0.2,
+ // colors: [
+ // [0.2, '#73BF69'],
+ // [0.5, '#EAB839'],
+ // [1, 'red'],
+ // ],
+ // label: {
+ // text: '
50
',
+ // position: {
+ // // y: 5,
+ // },
+ // },
+ // text: {
+ // show: false,
+ // size: 12,
+ // // color: 'red' || () => 'red'
+ // },
+ });
+ chart.interaction('element-active');
+ chart.render();
+ // const pie = document.getElementsByClassName(
+ // 'pie-chart',
+ // )[0] as HTMLElement;
+ // pie.style.width = `${window.innerWidth - 100}px`;
+ // // pie.style.height = `${window.innerHeight - 100}px`;
+ // pie.style.height = `188px`;
+ }
+
+ window.addEventListener('resize', () => {
+ const dom = document.querySelector('.chart') as unknown as HTMLElement
+ // console.log(dom)
+ dom.innerHTML = ''
+ setTimeout(() => {
+ initChart();
+ })
+ });
+ });
+
+ return `
+
+ `;
+};
+
+export const Gauge = Template.bind({});
diff --git a/stories/line.stories.ts b/stories/line.stories.ts
index f221685..1c7e3c3 100644
--- a/stories/line.stories.ts
+++ b/stories/line.stories.ts
@@ -1,11 +1,9 @@
import { Story, Meta } from '@storybook/html';
-import { timeFormat } from 'd3';
-import { data } from './data';
+import { dealWithTime, generateData } from './utilt';
-import { Chart, ScaleType } from '@alauda/chart';
-
-import '../src/theme/default.scss';
+import { Chart } from '@alauda/chart';
+import 'uplot/dist/uPlot.min.css';
export default {
title: 'Line',
@@ -13,128 +11,132 @@ export default {
const Template: Story = () => {
setTimeout(() => {
- Chart({
- container: '#chart',
- type: 'line',
- title: {
- text: '折线图',
- // hide: true,
- formatter: () => '折线图',
- // offsetX: 20,
- // offsetY: 30,
- // hide: true,
- },
- legend: {
- // hide: true,
- // isMount: true,
- // formatter: () => {
- // return document.getElementById('title').outerHTML;
- // },
- // offsetX: 20,
- // offsetY: 30,
- // formatter: data => `
11
`,
- // itemFormatter: `legend {name}`,
- },
- data: data.map(d => ({
- ...d,
- values: d.values.map(a => ({
- ...a,
- x: a.x * 1000,
- y: a.y * 1_000_000_000_000,
- })),
- })),
- yAxis: {
- // tickFormatter: (text) => {
- // console.log(text)
- // return text
- // },
- },
- xAxis: {
- type: ScaleType.TIME,
- tickFormatter: () => timeFormat('%m-%d %H:%M'),
- },
- tooltip: {
- // titleFormatter: (name: Date | number | string) =>
- // `
${new Date(name)}
`,
- // itemFormatter: (values: TooltipContextItem[]) =>
- // `
${JSON.stringify(values)}
`,
- // sort: (a, b) => a.y - b.y,
- },
- zoom: {
- enabled: false,
- // onzoomStart: d => {
- // console.log('zoom start', d);
- // },
- // onzoom: d => {
- // console.log('zoom', d);
- // },
- // onzoomEnd: d => {
- // console.log('zoom end', d);
+ console.time('render');
+ const d1 = generateData('2023-01-31 09:00:00', 60, 60);
+ const opts = {
+ container: '.chart1',
+ data: [
+ {
+ name: 'line',
+ values: d1,
+ },
+ // {
+ // name: 'line2',
+ // values: generateData('2023-01-31 09:00:00', 60, 60),
// },
+ ],
+ options: {
+ title: { text: 'chart' },
+ // legend: {
+ // position: 'bottom-right',
+ // }
+ annotation: {
+ // lineX: {
+ // data: d1[i].x,
+ // text: {
+ // content: i,
+ // }
+ // },
+ lineY: [
+ {
+ data: '3',
+ text: {
+ content: '1111',
+ },
+ },
+ ],
+ },
+ scale: {
+ // y: { max: 100, min: 10 },
+ // y: {}
+ },
+ line: {
+ step: 'start',
+ },
+ tooltip: {
+ // showTitle: false
+ titleFormatter: (title: string) =>
+ `${dealWithTime(new Date(Number(title) * 1000))}`,
+ },
},
- // contextCallbackFunction: (view: View) => {
- // console.log(view);
- // },
- xPlotLine: {
- color: 'red',
- value: 120,
- },
- // contextCallbackFunction: view => {
- // console.log('cb', view);
- // setTimeout(() => {
- // const legend = view.getController('legend');
+ };
+ const chart = new Chart(opts as any);
+ chart.line();
+ // console.log(chart);
+ // chart.data(data);
+ // chart.shape('line');
+ // chart.shape('bar', { name: 'line2' });
+ chart.render();
+ const reactive: any = chart.reactive();
- // legend.legendUnselectAll();
- // setTimeout(() => {
- // legend.legendSelectAll();
- // }, 1000);
- // }, 2000);
- // },
+ const btn = document.querySelector('#change');
+ // let bb = true;
+ let i = 0;
+ btn.addEventListener('click', () => {
+ // reactive.options.title.text = String(Math.random() * 1000);
+ // reactive.options.legend = {
+ // position: 'bottom-right',
+ // };
+ // bb = !bb
+ // reactive.options.tooltip = {
+ // showTitle: bb,
+ // titleFormatter: '{title}111'
+ // }
+ reactive.options.annotation = {
+ // lineX: {
+ // data: d1[i].x,
+ // text: {
+ // content: i,
+ // }
+ // },
+ lineY: {
+ data: d1[i].y,
+ text: {
+ content: String(i),
+ },
+ },
+ };
+ // reactive.options.scale = {
+ // y: { max: 100, min: 10 },
+ // };
+ // reactive.options.tooltip = false;
+ // reactive.data = [
+ // {
+ // name: 'line1',
+ // values: generateData('2023-01-31 09:00:00', 60, 60),
+ // },
+ // {
+ // name: 'line2',
+ // values: generateData('2023-01-31 09:00:00', 60, 60),
+ // },
+ // ];
+ i = i + 1;
});
- // chart.on(RECT_EVENTS.CLICK, (value: TooltipContext) => {
- // chart.updateYPlotLine(value);
- // console.log(JSON.stringify(value));
- // });
-
- setTimeout(() => {
- // chart.updateTitle({
- // text: '123123',
- // formatter: () => '123123####',
- // });
- // chart.updateYPlotLine({
- // title: 1637114400000,
- // values: [
- // {
- // x: 1637114400000,
- // y: 573,
- // name: 'running',
- // color: '#24b37a',
- // activated: false,
- // },
- // {
- // x: 1637114400000,
- // y: 599,
- // name: 'total_num',
- // color: '#006eff',
- // activated: false,
- // },
- // ],
- // });
- // chart.updateXPlotLine({value: 10});
- }, 1000);
-
- // setTimeout(() => {
- // chart.data(data1);
- // // chart.setOptions({
- // // zoom: {
- // // enabled: true,
- // // },
- // // });
- // }, 1000);
});
- return `
`;
+
+ return `
+
+
+ `;
};
export const line = Template.bind({});
+// line.args = {
+// primary: true,
+// label: 'Button',
+// };
+// line.parameters = {
+// backgrounds: {
+// values: [
+// { name: 'red', value: '#f00' },
+// { name: 'green', value: '#0f0' },
+// { name: 'blue', value: '#00f' },
+// ],
+// },
+// };
+
+// 图表类型 line area bar
+// 大数据量
+// sliding 动态效果
diff --git a/stories/pie.stories.ts b/stories/pie.stories.ts
index 20918f1..74f5ada 100644
--- a/stories/pie.stories.ts
+++ b/stories/pie.stories.ts
@@ -1,67 +1,123 @@
+import addons from '@storybook/addons';
import { Story, Meta } from '@storybook/html';
-
-import { groupPieData } from './data';
+import { DARK_MODE_EVENT_NAME } from 'storybook-dark-mode';
import { Chart } from '@alauda/chart';
-
-import '../src/theme/default.scss';
+import 'uplot/dist/uPlot.min.css';
export default {
title: 'Pie',
} as Meta;
+let chart: Chart;
+
const Template: Story = () => {
+ addons.getChannel().on(DARK_MODE_EVENT_NAME, (e: boolean) => {
+ chart?.theme(e ? 'dark' : 'light');
+ });
+
setTimeout(() => {
- const chart = Chart({
- container: '#pieChart',
- type: 'pie',
- // title: {
- // text: '环形图',
- // },
- legend: {
- // hide: true,
+ const groupPieData = [
+ {
+ name: '部署',
+ value: 7038600,
+ color: '#999',
},
- seriesOption: {
- outerRadius: 50,
- // backgroundColor: '#ededed',
- total: 100,
- label: {
- text: '
1000
',
- position: {
- x: '50%',
- y: '50%',
- },
- },
- itemStyle: {
- borderRadius: 2,
- borderWidth: 2,
- },
- innerDisc: true,
+
+ {
+ name: '有状态',
+ value: 7038360,
+ color: '#0abf5b',
},
- tooltip: {
- trigger: 'item',
- hideTitle: true,
+ {
+ name: '守护',
+ value: 7039320,
+ color: '#006eff',
},
- data: groupPieData,
- });
- // chart.on(PIE_EVENTS.ITEM_HOVERED, function (e) {
- // console.log(e);
- // });
- // chart.on(PIE_EVENTS.ITEM_MOUSEOUT, function (e) {
- // console.log(e);
- // });
- setTimeout(() => {
- // chart.data(groupPieData);
- chart.updatePie({
- label: {
- text: '
2222
',
+ {
+ name: 'sss',
+ value: 52186903,
+ color: '#999',
+ },
+ ];
+
+ const data =[
+ { name: '123', value: 7038600 },
+ { name: 7038360, value: 7038360 },
+ { name: 7039320, value: 7039320 },
+ { name: 52186903, value: 52186903 },
+ { name: 397374320, value: 397374320 },
+ { name: 485002955, value: 485002955 },
+ { name: 19920191, value: 19920191 },
+ { name: 731859161, value: 731859161 },
+ { name: '11231231231112312312311123123123111231231231112311231231231232312311123123123111231231231', value: 736941297 },
+ ];
+
+ function getOp(container: string, data: any): any {
+ return {
+ container,
+ // data: [],
+ data,
+ options: {
+ legend: {
+ position: 'bottom-left'
+ },
+ tooltip: true,
+ pie: {
+ // startAngle: -(Math.PI / 1.4),
+ // endAngle: Math.PI / 1.4,
+ // padAngle: 0.05,
+ // total: 100,
+ labelLine: {
+ labels: ['name','percent'],
+ show: true,
+ },
+ // label: {
+ // text: '
1000
',
+ // },
+ // backgroundColor: '#ededed',
+ // itemStyle: {
+ // borderWidth: 0,
+ // borderRadius: 0,
+ // },
+ // innerDisc: true
+ },
},
+ };
+ }
+ initChart();
+ function initChart() {
+ chart = new Chart(getOp('.chart', data));
+ chart.pie();
+ chart.interaction('element-active');
+ chart.render();
+ const pie = document.getElementsByClassName(
+ 'pie-chart',
+ )[0] as HTMLElement;
+ pie.style.width = `${window.innerWidth - 100}px`;
+ // pie.style.height = `${window.innerHeight - 100}px`;
+ pie.style.height = `188px`;
+
+ window.addEventListener('resize', e => {
+ const pie = document.getElementsByClassName(
+ 'pie-chart',
+ )[0] as HTMLElement;
+ pie.style.width = `${window.innerWidth - 100}px`;
+ // pie.style.height = `240px`;
+ pie.style.height = `${window.innerHeight - 100}px`;
});
- }, 2000);
- }, 0);
- return `
`;
+ }
+ });
+
+ return `
+
+ `;
};
-export const pie = Template.bind({});
+export const Pie = Template.bind({});
diff --git a/stories/point.stories.ts b/stories/point.stories.ts
new file mode 100644
index 0000000..b53940a
--- /dev/null
+++ b/stories/point.stories.ts
@@ -0,0 +1,57 @@
+import { Story, Meta } from '@storybook/html';
+
+import { dealWithTime, generateData } from './utilt';
+
+import { Chart } from '@alauda/chart';
+import 'uplot/dist/uPlot.min.css';
+
+export default {
+ title: 'Point',
+} as Meta;
+
+const Template: Story = () => {
+ setTimeout(() => {
+ console.time('render');
+ const chart = new Chart({
+ container: '.chart1',
+ height: 200,
+ data: [
+ {
+ name: 'point1',
+ values: generateData('2023-01-31 09:00:00', 60, 60),
+ },
+ {
+ name: 'point2',
+ values: generateData('2023-01-31 09:00:00', 60, 60, [2, 5]),
+ },
+ ],
+ options: {
+ title: { text: 'chart' },
+ // legend: {
+ // position: 'bottom-right',
+ // }
+ tooltip: {
+ // showTitle: false
+ titleFormatter: title =>
+ `${dealWithTime(new Date(Number(title) * 1000))}`,
+ },
+ },
+ });
+ // console.log(chart);
+ // chart.data(data);
+ chart.point();
+ // chart.shape('bar', { name: 'line2' });
+ chart.render();
+ });
+ return `
+
+ `;
+};
+
+export const Point = Template.bind({});
+
+// 图表类型 line area bar
+// 大数据量
+// sliding 动态效果
diff --git a/stories/scatter.stories.ts b/stories/scatter.stories.ts
deleted file mode 100644
index ff9270c..0000000
--- a/stories/scatter.stories.ts
+++ /dev/null
@@ -1,61 +0,0 @@
-import { Story, Meta } from '@storybook/html';
-import { timeFormat } from 'd3';
-import { round } from 'lodash';
-
-import { ScatterData } from './data';
-
-import { Chart, ScaleType } from '@alauda/chart';
-
-import '../src/theme/default.scss';
-
-export default {
- title: 'Scatter',
-} as Meta;
-
-const Template: Story = () => {
- setTimeout(() => {
- Chart({
- container: '#chart',
- type: 'scatter',
- title: {
- text: '气泡-散点图',
- },
- legend: {},
- seriesOption: {
- type: 'bubble',
- size: 3,
- minSize: 10,
- maxSize: 30,
- },
- data: ScatterData,
- yAxis: {
- tickFormatter: duration => {
- let d = duration / 1000;
- let units = 'ms';
- if (d >= 1000) {
- units = 's';
- d /= 1000;
- }
- return `${round(d, 2)}${units}`;
- },
- },
- xAxis: {
- type: ScaleType.TIME,
- tickFormatter: () => timeFormat('%m-%d %H:%M'),
- },
- tooltip: {
- trigger: 'item',
- // titleFormatter: (name: Date | number | string) =>
- // `
${new Date(name)}
`,
- // itemFormatter: (values: TooltipContextItem[]) =>
- // `
${JSON.stringify(values)}
`,
- // sort: (a, b) => a.y - b.y,
- },
- });
- });
- return `
`;
-};
-
-export const scatter = Template.bind({});
diff --git a/stories/utilt.ts b/stories/utilt.ts
new file mode 100644
index 0000000..c57c0bc
--- /dev/null
+++ b/stories/utilt.ts
@@ -0,0 +1,58 @@
+export function dealWithTime(date: Date) {
+ const Y = date.getFullYear();
+ const M =
+ date.getMonth() + 1 - 0 >= 10
+ ? Number(date.getMonth()) + 1
+ : '0' + (Number(date.getMonth()) + 1);
+ const D = date.getDate();
+ const h = date.getHours() >= 10 ? date.getHours() : '0' + date.getHours();
+ const m =
+ date.getMinutes() >= 10 ? date.getMinutes() : '0' + date.getMinutes();
+ const s =
+ date.getSeconds() >= 10 ? date.getSeconds() : '0' + date.getSeconds();
+ return Y + '-' + M + '-' + D + ' ' + h + ':' + m + ':' + s;
+}
+
+export function generateData(
+ start: string,
+ num: number,
+ step: number,
+ range: [number, number] = [10, 20],
+) {
+ const s = new Date(start).valueOf() / 1000;
+ const [max, min] = range;
+
+ return Array.from({ length: num + 1 })
+ .fill(0)
+ .map((_, i) => {
+ const x: number = i ? s + i * step : s;
+ const v = Math.random() * (max + 1 - min) + min;
+ return {
+ x,
+ y: v,
+ xx: dealWithTime(new Date(x * 1000)),
+ size: Math.random() * (max + 1 - min) + min,
+ };
+ });
+}
+
+export function generateTime(start: string, num: number, step: number) {
+ const s = new Date(start).valueOf() / 1000;
+ return Array.from({ length: num + 1 })
+ .fill(0)
+ .map((_, i) => {
+ const x: number = i ? s + i * step : s;
+ return x;
+ });
+}
+
+export function generateY(num: number, range: [number, number] = [10, 20]) {
+ return Array.from({ length: num + 1 })
+ .fill(0)
+ .map(() => getRandom(range));
+}
+
+export function getRandom(range: [number, number] = [10, 20]) {
+ const [max, min] = range;
+ return +(Math.random() * (max + 1 - min) + min).toFixed(2);
+}
diff --git a/yarn.lock b/yarn.lock
index 9db18d8..ae5fa98 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -364,12 +364,12 @@
dependencies:
eslint-rule-composer "^0.3.0"
-"@babel/generator@^7.0.0-beta.44", "@babel/generator@^7.12.11", "@babel/generator@^7.12.5", "@babel/generator@^7.18.9":
- version "7.18.9"
- resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.18.9.tgz#68337e9ea8044d6ddc690fb29acae39359cca0a5"
- integrity sha512-wt5Naw6lJrL1/SGkipMiFxJjtyczUWTP38deiP1PO60HsBjDeKk08CGC3S8iVuvf0FmTdgKwU1KIXzSKL1G0Ug==
+"@babel/generator@^7.0.0-beta.44", "@babel/generator@^7.12.11", "@babel/generator@^7.12.5", "@babel/generator@^7.18.9", "@babel/generator@^7.20.7":
+ version "7.20.7"
+ resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.20.7.tgz#f8ef57c8242665c5929fe2e8d82ba75460187b4a"
+ integrity sha512-7wqMOJq8doJMZmP4ApXTzLxSr7+oO2jroJURrVEp6XShrQUObV8Tq/D0NCcoYg2uHqUrjzO0zwBjoYzelxK+sw==
dependencies:
- "@babel/types" "^7.18.9"
+ "@babel/types" "^7.20.7"
"@jridgewell/gen-mapping" "^0.3.2"
jsesc "^2.5.1"
@@ -459,13 +459,13 @@
dependencies:
"@babel/types" "^7.18.6"
-"@babel/helper-function-name@^7.18.9":
- version "7.18.9"
- resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.18.9.tgz#940e6084a55dee867d33b4e487da2676365e86b0"
- integrity sha512-fJgWlZt7nxGksJS9a0XdSaI4XvpExnNIgRP+rVefWh5U7BL8pPuir6SJUmFKRfjWQ51OtWSzwOxhaH/EBWWc0A==
+"@babel/helper-function-name@^7.18.9", "@babel/helper-function-name@^7.19.0":
+ version "7.19.0"
+ resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.19.0.tgz#941574ed5390682e872e52d3f38ce9d1bef4648c"
+ integrity sha512-WAwHBINyrpqywkUH0nTnNgI5ina5TFn85HKS0pbPDfxFfhyR/aNQEn4hGi1P1JyT//I0t4OgXUlofzWILRvS5w==
dependencies:
- "@babel/template" "^7.18.6"
- "@babel/types" "^7.18.9"
+ "@babel/template" "^7.18.10"
+ "@babel/types" "^7.19.0"
"@babel/helper-hoist-variables@^7.18.6":
version "7.18.6"
@@ -561,10 +561,15 @@
dependencies:
"@babel/types" "^7.18.6"
-"@babel/helper-validator-identifier@^7.18.6":
- version "7.18.6"
- resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.18.6.tgz#9c97e30d31b2b8c72a1d08984f2ca9b574d7a076"
- integrity sha512-MmetCkz9ej86nJQV+sFCxoGGrUbU3q02kgLciwkrt9QqEB7cP39oKEY0PakknEO0Gu20SskMRi+AYZ3b1TpN9g==
+"@babel/helper-string-parser@^7.19.4":
+ version "7.19.4"
+ resolved "https://registry.yarnpkg.com/@babel/helper-string-parser/-/helper-string-parser-7.19.4.tgz#38d3acb654b4701a9b77fb0615a96f775c3a9e63"
+ integrity sha512-nHtDoQcuqFmwYNYPz3Rah5ph2p8PFeFCsZk9A/48dPc/rGocJ5J3hAAZ7pb76VWX3fZKu+uEr/FhH5jLx7umrw==
+
+"@babel/helper-validator-identifier@^7.18.6", "@babel/helper-validator-identifier@^7.19.1":
+ version "7.19.1"
+ resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.19.1.tgz#7eea834cf32901ffdc1a7ee555e2f9c27e249ca2"
+ integrity sha512-awrNfaMtnHUr653GgGEs++LlAvW6w+DcPrOliSMXWCKo597CwL5Acf/wWdNkf/tfEQE3mjkeD1YOVZOUV/od1w==
"@babel/helper-validator-option@^7.18.6":
version "7.18.6"
@@ -599,10 +604,10 @@
chalk "^2.0.0"
js-tokens "^4.0.0"
-"@babel/parser@^7.12.11", "@babel/parser@^7.12.7", "@babel/parser@^7.13.16", "@babel/parser@^7.14.7", "@babel/parser@^7.18.6", "@babel/parser@^7.18.9":
- version "7.18.9"
- resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.18.9.tgz#f2dde0c682ccc264a9a8595efd030a5cc8fd2539"
- integrity sha512-9uJveS9eY9DJ0t64YbIBZICtJy8a5QrDEVdiLCG97fVLpDTpGX7t8mMSb6OWw6Lrnjqj4O8zwjELX3dhoMgiBg==
+"@babel/parser@^7.12.11", "@babel/parser@^7.12.7", "@babel/parser@^7.13.16", "@babel/parser@^7.14.7", "@babel/parser@^7.18.9", "@babel/parser@^7.20.7":
+ version "7.20.7"
+ resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.20.7.tgz#66fe23b3c8569220817d5feb8b9dcdc95bb4f71b"
+ integrity sha512-T3Z9oHybU+0vZlY9CiDSJQTD5ZapcW18ZctFMi0MOAl/4BjFF4ul7NVSARLdbGO5vDqy9eQiGTV0LtKfvCYvcg==
"@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression@^7.18.6":
version "7.18.6"
@@ -1484,43 +1489,44 @@
source-map-support "^0.5.16"
"@babel/runtime@^7.0.0", "@babel/runtime@^7.10.4", "@babel/runtime@^7.12.5", "@babel/runtime@^7.17.8", "@babel/runtime@^7.3.1", "@babel/runtime@^7.5.0", "@babel/runtime@^7.5.5", "@babel/runtime@^7.8.4":
- version "7.18.9"
- resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.18.9.tgz#b4fcfce55db3d2e5e080d2490f608a3b9f407f4a"
- integrity sha512-lkqXDcvlFT5rvEjiu6+QYO+1GXrEHRo2LOtS7E4GtX5ESIZOgepqsZBVIj6Pv+a6zqsya9VCgiK1KAK4BvJDAw==
+ version "7.20.7"
+ resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.20.7.tgz#fcb41a5a70550e04a7b708037c7c32f7f356d8fd"
+ integrity sha512-UF0tvkUtxwAgZ5W/KrkHf0Rn0fdnLDU9ScxBrEVNUprE/MzirjK4MJUX1/BVDv00Sv8cljtukVK1aky++X1SjQ==
dependencies:
- regenerator-runtime "^0.13.4"
+ regenerator-runtime "^0.13.11"
-"@babel/template@^7.0.0", "@babel/template@^7.12.7", "@babel/template@^7.18.6":
- version "7.18.6"
- resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.18.6.tgz#1283f4993e00b929d6e2d3c72fdc9168a2977a31"
- integrity sha512-JoDWzPe+wgBsTTgdnIma3iHNFC7YVJoPssVBDjiHfNlyt4YcunDtcDOUmfVDfCK5MfdsaIoX9PkijPhjH3nYUw==
+"@babel/template@^7.0.0", "@babel/template@^7.12.7", "@babel/template@^7.18.10", "@babel/template@^7.18.6":
+ version "7.20.7"
+ resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.20.7.tgz#a15090c2839a83b02aa996c0b4994005841fd5a8"
+ integrity sha512-8SegXApWe6VoNw0r9JHpSteLKTpTiLZ4rMlGIm9JQ18KiCtyQiAMEazujAHrUS5flrcqYZa75ukev3P6QmUwUw==
dependencies:
"@babel/code-frame" "^7.18.6"
- "@babel/parser" "^7.18.6"
- "@babel/types" "^7.18.6"
+ "@babel/parser" "^7.20.7"
+ "@babel/types" "^7.20.7"
"@babel/traverse@^7.0.0", "@babel/traverse@^7.12.11", "@babel/traverse@^7.12.9", "@babel/traverse@^7.13.0", "@babel/traverse@^7.18.9":
- version "7.18.9"
- resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.18.9.tgz#deeff3e8f1bad9786874cb2feda7a2d77a904f98"
- integrity sha512-LcPAnujXGwBgv3/WHv01pHtb2tihcyW1XuL9wd7jqh1Z8AQkTd+QVjMrMijrln0T7ED3UXLIy36P9Ao7W75rYg==
+ version "7.20.10"
+ resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.20.10.tgz#2bf98239597fcec12f842756f186a9dde6d09230"
+ integrity sha512-oSf1juCgymrSez8NI4A2sr4+uB/mFd9MXplYGPEBnfAuWmmyeVcHa6xLPiaRBcXkcb/28bgxmQLTVwFKE1yfsg==
dependencies:
"@babel/code-frame" "^7.18.6"
- "@babel/generator" "^7.18.9"
+ "@babel/generator" "^7.20.7"
"@babel/helper-environment-visitor" "^7.18.9"
- "@babel/helper-function-name" "^7.18.9"
+ "@babel/helper-function-name" "^7.19.0"
"@babel/helper-hoist-variables" "^7.18.6"
"@babel/helper-split-export-declaration" "^7.18.6"
- "@babel/parser" "^7.18.9"
- "@babel/types" "^7.18.9"
+ "@babel/parser" "^7.20.7"
+ "@babel/types" "^7.20.7"
debug "^4.1.0"
globals "^11.1.0"
-"@babel/types@^7.0.0", "@babel/types@^7.12.11", "@babel/types@^7.12.7", "@babel/types@^7.18.6", "@babel/types@^7.18.9", "@babel/types@^7.4.4":
- version "7.18.9"
- resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.18.9.tgz#7148d64ba133d8d73a41b3172ac4b83a1452205f"
- integrity sha512-WwMLAg2MvJmt/rKEVQBBhIVffMmnilX4oe0sRe7iPOHIGsqpruFHHdrfj4O1CMMtgMtCU4oPafZjDPCRgO57Wg==
+"@babel/types@^7.0.0", "@babel/types@^7.12.11", "@babel/types@^7.12.7", "@babel/types@^7.18.6", "@babel/types@^7.18.9", "@babel/types@^7.19.0", "@babel/types@^7.20.7", "@babel/types@^7.4.4":
+ version "7.20.7"
+ resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.20.7.tgz#54ec75e252318423fc07fb644dc6a58a64c09b7f"
+ integrity sha512-69OnhBxSSgK0OzTJai4kyPDiKTIe3j+ctaHdIGVbRahTLAT7L3R9oeXHC2aVSuGYt3cVnoAMDmOCgJ2yaiLMvg==
dependencies:
- "@babel/helper-validator-identifier" "^7.18.6"
+ "@babel/helper-string-parser" "^7.19.4"
+ "@babel/helper-validator-identifier" "^7.19.1"
to-fast-properties "^2.0.0"
"@bloomberg/record-tuple-polyfill@^0.0.3":
@@ -2862,6 +2868,46 @@
global "^4.4.0"
regenerator-runtime "^0.13.7"
+"@storybook/addons@^6.5.14":
+ version "6.5.15"
+ resolved "https://registry.yarnpkg.com/@storybook/addons/-/addons-6.5.15.tgz#3c3fafbf3c9ce2182d652cb6682f6581ba6580e1"
+ integrity sha512-xT31SuSX+kYGyxCNK2nqL7WTxucs3rSmhiCLovJcUjYk+QquV3c2c53Ki7lwwdDbzfXFcNAe0HJ4hoTN4jhn0Q==
+ dependencies:
+ "@storybook/api" "6.5.15"
+ "@storybook/channels" "6.5.15"
+ "@storybook/client-logger" "6.5.15"
+ "@storybook/core-events" "6.5.15"
+ "@storybook/csf" "0.0.2--canary.4566f4d.1"
+ "@storybook/router" "6.5.15"
+ "@storybook/theming" "6.5.15"
+ "@types/webpack-env" "^1.16.0"
+ core-js "^3.8.2"
+ global "^4.4.0"
+ regenerator-runtime "^0.13.7"
+
+"@storybook/api@6.5.15", "@storybook/api@^6.5.14":
+ version "6.5.15"
+ resolved "https://registry.yarnpkg.com/@storybook/api/-/api-6.5.15.tgz#a189dac82a57ae9cfac43c887207b1075a2a2e96"
+ integrity sha512-BBE0KXKvj1/3jTghbIoWfrcDM0t+xO7EYtWWAXD6XlhGsZVD2Dy82Z52ONyLulMDRpMWl0OYy3h6A1YnFUH25w==
+ dependencies:
+ "@storybook/channels" "6.5.15"
+ "@storybook/client-logger" "6.5.15"
+ "@storybook/core-events" "6.5.15"
+ "@storybook/csf" "0.0.2--canary.4566f4d.1"
+ "@storybook/router" "6.5.15"
+ "@storybook/semver" "^7.3.2"
+ "@storybook/theming" "6.5.15"
+ core-js "^3.8.2"
+ fast-deep-equal "^3.1.3"
+ global "^4.4.0"
+ lodash "^4.17.21"
+ memoizerific "^1.11.3"
+ regenerator-runtime "^0.13.7"
+ store2 "^2.12.0"
+ telejson "^6.0.8"
+ ts-dedent "^2.0.0"
+ util-deprecate "^1.0.2"
+
"@storybook/api@6.5.9":
version "6.5.9"
resolved "https://registry.yarnpkg.com/@storybook/api/-/api-6.5.9.tgz#303733214c9de0422d162f7c54ae05d088b89bf9"
@@ -3006,6 +3052,15 @@
global "^4.4.0"
telejson "^6.0.8"
+"@storybook/channels@6.5.15":
+ version "6.5.15"
+ resolved "https://registry.yarnpkg.com/@storybook/channels/-/channels-6.5.15.tgz#586681b6ec458124da084c39bc8c518d9e96b10b"
+ integrity sha512-gPpsBgirv2NCXbH4WbYqdkI0JLE96aiVuu7UEWfn9yu071pQ9CLHbhXGD9fSFNrfOkyBBY10ppSE7uCXw3Wexg==
+ dependencies:
+ core-js "^3.8.2"
+ ts-dedent "^2.0.0"
+ util-deprecate "^1.0.2"
+
"@storybook/channels@6.5.9":
version "6.5.9"
resolved "https://registry.yarnpkg.com/@storybook/channels/-/channels-6.5.9.tgz#abfab89a6587a2688e9926d4aafeb11c9d8b2e79"
@@ -3076,6 +3131,14 @@
ts-dedent "^2.0.0"
util-deprecate "^1.0.2"
+"@storybook/client-logger@6.5.15":
+ version "6.5.15"
+ resolved "https://registry.yarnpkg.com/@storybook/client-logger/-/client-logger-6.5.15.tgz#0d9878af893a3493b6ee108cc097ae1436d7da4d"
+ integrity sha512-0uyxKvodq+FycGv6aUwC1wUR6suXf2+7ywMFAOlYolI4UvNj8NyU/5AfgKT5XnxYAgPmoCiAjOE700TrfHrosw==
+ dependencies:
+ core-js "^3.8.2"
+ global "^4.4.0"
+
"@storybook/client-logger@6.5.9":
version "6.5.9"
resolved "https://registry.yarnpkg.com/@storybook/client-logger/-/client-logger-6.5.9.tgz#dc1669abe8c45af1cc38f74c6f4b15ff33e63014"
@@ -3119,6 +3182,20 @@
regenerator-runtime "^0.13.7"
util-deprecate "^1.0.2"
+"@storybook/components@^6.5.14":
+ version "6.5.15"
+ resolved "https://registry.yarnpkg.com/@storybook/components/-/components-6.5.15.tgz#8145be807bf48c1d010f29114411f390a9e3228f"
+ integrity sha512-bHTT0Oa3s4g+MBMaLBbX9ofMtb1AW59AzIUNGrfqW1XqJMGuUHMiJ7TSo+i5dRSFpbFygnwMEG9LfHxpR2Z0Dw==
+ dependencies:
+ "@storybook/client-logger" "6.5.15"
+ "@storybook/csf" "0.0.2--canary.4566f4d.1"
+ "@storybook/theming" "6.5.15"
+ core-js "^3.8.2"
+ memoizerific "^1.11.3"
+ qs "^6.10.0"
+ regenerator-runtime "^0.13.7"
+ util-deprecate "^1.0.2"
+
"@storybook/core-client@6.5.9":
version "6.5.9"
resolved "https://registry.yarnpkg.com/@storybook/core-client/-/core-client-6.5.9.tgz#ea6035d1c90d2c68e860e3cf629979491856cd88"
@@ -3201,6 +3278,13 @@
util-deprecate "^1.0.2"
webpack "4"
+"@storybook/core-events@6.5.15", "@storybook/core-events@^6.5.14":
+ version "6.5.15"
+ resolved "https://registry.yarnpkg.com/@storybook/core-events/-/core-events-6.5.15.tgz#c12f645b50231c50eb9b26038aa67ab92b1ba24e"
+ integrity sha512-B1Ba6l5W7MeNclclqMMTMHgYgfdpB5SIhNCQFnzIz8blynzRhNFMdxvbAl6Je5G0S4xydYYd7Lno2kXQebs7HA==
+ dependencies:
+ core-js "^3.8.2"
+
"@storybook/core-events@6.5.9":
version "6.5.9"
resolved "https://registry.yarnpkg.com/@storybook/core-events/-/core-events-6.5.9.tgz#5b0783c7d22a586c0f5e927a61fe1b1223e19637"
@@ -3472,6 +3556,17 @@
unfetch "^4.2.0"
util-deprecate "^1.0.2"
+"@storybook/router@6.5.15":
+ version "6.5.15"
+ resolved "https://registry.yarnpkg.com/@storybook/router/-/router-6.5.15.tgz#bf01d35bdd4603bf188629a6578489e313a312fd"
+ integrity sha512-9t8rI8t7/Krolau29gsdjdbRQ66orONIyP0efp0EukVgv6reNFzb/U14ARrl0uHys6Tl5Xyece9FoakQUdn8Kg==
+ dependencies:
+ "@storybook/client-logger" "6.5.15"
+ core-js "^3.8.2"
+ memoizerific "^1.11.3"
+ qs "^6.10.0"
+ regenerator-runtime "^0.13.7"
+
"@storybook/router@6.5.9":
version "6.5.9"
resolved "https://registry.yarnpkg.com/@storybook/router/-/router-6.5.9.tgz#4740248f8517425b2056273fb366ace8a17c65e8"
@@ -3546,6 +3641,16 @@
read-pkg-up "^7.0.1"
regenerator-runtime "^0.13.7"
+"@storybook/theming@6.5.15", "@storybook/theming@^6.5.14":
+ version "6.5.15"
+ resolved "https://registry.yarnpkg.com/@storybook/theming/-/theming-6.5.15.tgz#048461b37ad0c29dc8d91a065a6bf1c90067524c"
+ integrity sha512-pgdW0lVZKKXQ4VhIfLHycMmwFSVOY7vLTKnytag4Y8Yz+aXm0bwDN/QxPntFzDH47F1Rcy2ywNnvty8ooDTvuA==
+ dependencies:
+ "@storybook/client-logger" "6.5.15"
+ core-js "^3.8.2"
+ memoizerific "^1.11.3"
+ regenerator-runtime "^0.13.7"
+
"@storybook/theming@6.5.9":
version "6.5.9"
resolved "https://registry.yarnpkg.com/@storybook/theming/-/theming-6.5.9.tgz#13f60a3a3cd73ceb5caf9f188e1627e79f1891aa"
@@ -3989,10 +4094,17 @@
resolved "https://registry.yarnpkg.com/@types/json5/-/json5-0.0.29.tgz#ee28707ae94e11d2b827bcbe5270bcea7f3e71ee"
integrity sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==
-"@types/lodash@^4.14.167", "@types/lodash@^4.14.182":
- version "4.14.182"
- resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.14.182.tgz#05301a4d5e62963227eaafe0ce04dd77c54ea5c2"
- integrity sha512-/THyiqyQAP9AfARo4pF+aCGcyiQ94tX/Is2I7HofNRqoYLgN1PBoOWu2/zTA5zMxzP5EFutMtWtGAFRKUe961Q==
+"@types/lodash-es@^4.17.12":
+ version "4.17.12"
+ resolved "https://registry.yarnpkg.com/@types/lodash-es/-/lodash-es-4.17.12.tgz#65f6d1e5f80539aa7cfbfc962de5def0cf4f341b"
+ integrity sha512-0NgftHUcV4v34VhXm8QBSftKVXtbkBG3ViCjs6+eJ5a6y6Mi/jiFGPc1sC7QK+9BFhWrURE3EOggmWaSxL9OzQ==
+ dependencies:
+ "@types/lodash" "*"
+
+"@types/lodash@*", "@types/lodash@^4.14.167", "@types/lodash@^4.14.182":
+ version "4.17.7"
+ resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.17.7.tgz#2f776bcb53adc9e13b2c0dfd493dfcbd7de43612"
+ integrity sha512-8wTvZawATi/lsmNu10/j2hk1KEP0IvjubqPE3cu1Xz7xfXXt5oCq3SNUz4fMIP4XGF9Ky+Ue2tBA3hcS7LSBlA==
"@types/mdast@^3.0.0":
version "3.0.10"
@@ -4122,6 +4234,11 @@
resolved "https://registry.yarnpkg.com/@types/tapable/-/tapable-1.0.8.tgz#b94a4391c85666c7b73299fd3ad79d4faa435310"
integrity sha512-ipixuVrh2OdNmauvtT51o3d8z12p6LtFW9in7U79der/kwejjdNchQC5UMn5u/KxNoM7VHHOs/l8KS8uHxhODQ==
+"@types/tinycolor2@^1.4.6":
+ version "1.4.6"
+ resolved "https://registry.yarnpkg.com/@types/tinycolor2/-/tinycolor2-1.4.6.tgz#670cbc0caf4e58dd61d1e3a6f26386e473087f06"
+ integrity sha512-iEN8J0BoMnsWBqjVbWH/c0G0Hh7O21lpR2/+PrvAVgWdzL7eexIFm4JN/Wn10PTcmNdtS6U67r499mlWMXOxNw==
+
"@types/unist@*", "@types/unist@^2.0.0", "@types/unist@^2.0.2", "@types/unist@^2.0.3":
version "2.0.6"
resolved "https://registry.yarnpkg.com/@types/unist/-/unist-2.0.6.tgz#250a7b16c3b91f672a24552ec64678eeb1d3a08d"
@@ -4752,6 +4869,15 @@ anymatch@^3.0.3, anymatch@~3.1.2:
normalize-path "^3.0.0"
picomatch "^2.0.4"
+aphrodite@^2.4.0:
+ version "2.4.0"
+ resolved "https://registry.yarnpkg.com/aphrodite/-/aphrodite-2.4.0.tgz#ec1a2afa41ba7310a47a4f1fba27919d99572c91"
+ integrity sha512-1rVRlLco+j1YAT5aKEE8Wuw5zWV+tI41/quEheJAG0vNaGHE64iJ/a2SiVMz8Uc80VdP2/Hjlfd2bPJOWsqJuQ==
+ dependencies:
+ asap "^2.0.3"
+ inline-style-prefixer "^5.1.0"
+ string-hash "^1.1.3"
+
app-root-dir@^1.0.2:
version "1.0.2"
resolved "https://registry.yarnpkg.com/app-root-dir/-/app-root-dir-1.0.2.tgz#38187ec2dea7577fff033ffcb12172692ff6e118"
@@ -4929,6 +5055,11 @@ arrify@^2.0.1:
resolved "https://registry.yarnpkg.com/arrify/-/arrify-2.0.1.tgz#c9655e9331e0abcd588d2a7cad7e9956f66701fa"
integrity sha512-3duEwti880xqi4eAMN8AyR4a0ByT90zoYdLlevfrvU43vb0YZwZVfxOgxWrLXXXpyugL0hNZc9G6BiB5B3nUug==
+asap@^2.0.3:
+ version "2.0.6"
+ resolved "https://registry.yarnpkg.com/asap/-/asap-2.0.6.tgz#e50347611d7e690943208bbdafebcbc2fb866d46"
+ integrity sha512-BSHWgDSAiKs50o2Re8ppvp3seVHXSRM44cdSsT9FfNEUUZLOGWVCsiWaRPWM1Znn+mqZ1OfVZ3z3DWEzSp7hRA==
+
assign-symbols@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/assign-symbols/-/assign-symbols-1.0.0.tgz#59667f41fadd4f20ccbc2bb96b8d4f7f78ec0367"
@@ -6305,6 +6436,14 @@ css-has-pseudo@^3.0.4:
dependencies:
postcss-selector-parser "^6.0.9"
+css-in-js-utils@^2.0.0:
+ version "2.0.1"
+ resolved "https://registry.yarnpkg.com/css-in-js-utils/-/css-in-js-utils-2.0.1.tgz#3b472b398787291b47cfe3e44fecfdd9e914ba99"
+ integrity sha512-PJF0SpJT+WdbVVt0AOYp9C8GnuruRlL/UFW7932nLWmFLQTaWEzTBQEx7/hn4BuV+WON75iAViSUJLiU3PKbpA==
+ dependencies:
+ hyphenate-style-name "^1.0.2"
+ isobject "^3.0.1"
+
css-loader@^3.6.0:
version "3.6.0"
resolved "https://registry.yarnpkg.com/css-loader/-/css-loader-3.6.0.tgz#2e4b2c7e6e2d27f8c8f28f61bffcd2e6c91ef645"
@@ -9727,6 +9866,11 @@ human-signals@^3.0.1:
resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-3.0.1.tgz#c740920859dafa50e5a3222da9d3bf4bb0e5eef5"
integrity sha512-rQLskxnM/5OCldHo+wNXbpVgDn5A17CUoKX+7Sokwaknlq7CdSnphy0W39GU8dw59XiCXmFXDg4fRuckQRKewQ==
+hyphenate-style-name@^1.0.2:
+ version "1.0.4"
+ resolved "https://registry.yarnpkg.com/hyphenate-style-name/-/hyphenate-style-name-1.0.4.tgz#691879af8e220aea5750e8827db4ef62a54e361d"
+ integrity sha512-ygGZLjmXfPHj+ZWh6LwbC37l43MhfztxetbFCoYTM2VjkIUpeHgSNn7QIyVFj7YQ1Wl9Cbw5sholVJPzWvC2MQ==
+
iconv-lite@0.4.24, iconv-lite@^0.4.24:
version "0.4.24"
resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.24.tgz#2022b4b25fbddc21d2f524974a474aafe733908b"
@@ -9967,6 +10111,13 @@ inline-style-parser@0.1.1:
resolved "https://registry.yarnpkg.com/inline-style-parser/-/inline-style-parser-0.1.1.tgz#ec8a3b429274e9c0a1f1c4ffa9453a7fef72cea1"
integrity sha512-7NXolsK4CAS5+xvdj5OMMbI962hU/wvwoxk+LWR9Ek9bVtyuuYScDN6eS0rUm6TxApFpw7CX1o4uJzcd4AyD3Q==
+inline-style-prefixer@^5.1.0:
+ version "5.1.2"
+ resolved "https://registry.yarnpkg.com/inline-style-prefixer/-/inline-style-prefixer-5.1.2.tgz#e5a5a3515e25600e016b71e39138971228486c33"
+ integrity sha512-PYUF+94gDfhy+LsQxM0g3d6Hge4l1pAqOSOiZuHWzMvQEGsbRQ/ck2WioLqrY2ZkHyPgVUXxn+hrkF7D6QUGbA==
+ dependencies:
+ css-in-js-utils "^2.0.0"
+
internal-slot@^1.0.3:
version "1.0.3"
resolved "https://registry.yarnpkg.com/internal-slot/-/internal-slot-1.0.3.tgz#7347e307deeea2faac2ac6205d4bc7d34967f59c"
@@ -12822,6 +12973,11 @@ object.values@^1.1.0, object.values@^1.1.5:
define-properties "^1.1.3"
es-abstract "^1.19.1"
+on-change@^4.0.2:
+ version "4.0.2"
+ resolved "https://registry.yarnpkg.com/on-change/-/on-change-4.0.2.tgz#838129790f09dc2ed04284944bda6e82b92c10b8"
+ integrity sha512-cMtCyuJmTx/bg2HCpHo3ZLeF7FZnBOapLqZHr2AlLeJ5Ul0Zu2mUJJz051Fdwu/Et2YW04ZD+TtU+gVy0ACNCA==
+
on-finished@2.4.1:
version "2.4.1"
resolved "https://registry.yarnpkg.com/on-finished/-/on-finished-2.4.1.tgz#58c8c44116e54845ad57f14ab10b03533184ac3f"
@@ -13426,6 +13582,11 @@ pkg-dir@^5.0.0:
dependencies:
find-up "^5.0.0"
+placement.js@^1.0.0-beta.5:
+ version "1.0.0-beta.5"
+ resolved "https://registry.yarnpkg.com/placement.js/-/placement.js-1.0.0-beta.5.tgz#2aac6bd8e670729bbf26ad47f2f9656b19e037d5"
+ integrity sha512-QD5hLPVKnT6Q1U34xxuRG9BhlBVaD0uF91JOzjvDnHAQfO/qjO4jmSTyjpR+K4se6Dn3Oo23IWeFX+QFFa9xNg==
+
pluralize@^8.0.0:
version "8.0.0"
resolved "https://registry.yarnpkg.com/pluralize/-/pluralize-8.0.0.tgz#1a6fa16a38d12a1901e0320fa017051c539ce3b1"
@@ -14748,10 +14909,10 @@ regenerate@^1.4.2:
resolved "https://registry.yarnpkg.com/regenerate/-/regenerate-1.4.2.tgz#b9346d8827e8f5a32f7ba29637d398b69014848a"
integrity sha512-zrceR/XhGYU/d/opr2EKO7aRHUeiBI8qjtfHqADTwZd6Szfy16la6kqD0MIUs5z5hx6AaKa+PixpPrR289+I0A==
-regenerator-runtime@^0.13.4, regenerator-runtime@^0.13.7:
- version "0.13.9"
- resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.13.9.tgz#8925742a98ffd90814988d7566ad30ca3b263b52"
- integrity sha512-p3VT+cOEgxFsRRA9X4lkI1E+k2/CtnKtU4gcxyaCUreilL/vqI6CdZ3wxVUx3UOUg+gnUOQQcRI7BmSI656MYA==
+regenerator-runtime@^0.13.11, regenerator-runtime@^0.13.7:
+ version "0.13.11"
+ resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.13.11.tgz#f6dca3e7ceec20590d07ada785636a90cdca17f9"
+ integrity sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg==
regenerator-transform@^0.15.0:
version "0.15.0"
@@ -16688,6 +16849,20 @@ store2@^2.12.0:
resolved "https://registry.yarnpkg.com/store2/-/store2-2.14.2.tgz#56138d200f9fe5f582ad63bc2704dbc0e4a45068"
integrity sha512-siT1RiqlfQnGqgT/YzXVUNsom9S0H1OX+dpdGN1xkyYATo4I6sep5NmsRD/40s3IIOvlCq6akxkqG82urIZW1w==
+storybook-dark-mode@^2.0.5:
+ version "2.0.5"
+ resolved "https://registry.yarnpkg.com/storybook-dark-mode/-/storybook-dark-mode-2.0.5.tgz#a15e8a43bf4b60745f73fd362133ba565a3bc61e"
+ integrity sha512-egOMu2tgGttGAMtFZcDLZobs1xc7LzFOh+pRVqaW59AVp05ABdQ3Hj6IX2Pz7tYGmF9AmaK+nBv0hDFxPe7Hfg==
+ dependencies:
+ "@storybook/addons" "^6.5.14"
+ "@storybook/api" "^6.5.14"
+ "@storybook/components" "^6.5.14"
+ "@storybook/core-events" "^6.5.14"
+ "@storybook/theming" "^6.5.14"
+ fast-deep-equal "^3.1.3"
+ global "^4.4.0"
+ memoizerific "^1.11.3"
+
stream-transform@^2.1.3:
version "2.1.3"
resolved "https://registry.yarnpkg.com/stream-transform/-/stream-transform-2.1.3.tgz#a1c3ecd72ddbf500aa8d342b0b9df38f5aa598e3"
@@ -16712,7 +16887,7 @@ string-argv@^0.3.1:
resolved "https://registry.yarnpkg.com/string-argv/-/string-argv-0.3.1.tgz#95e2fbec0427ae19184935f816d74aaa4c5c19da"
integrity sha512-a1uQGz7IyVy9YwhqjZIZu1c8JO8dNIe20xBmSS6qu9kv++k3JGzCVmprbNN5Kn+BgzD5E7YYwg1CcjuJMRNsvg==
-string-hash@^1.1.1:
+string-hash@^1.1.1, string-hash@^1.1.3:
version "1.1.3"
resolved "https://registry.yarnpkg.com/string-hash/-/string-hash-1.1.3.tgz#e8aafc0ac1855b4666929ed7dd1275df5d6c811b"
integrity sha512-kJUvRUFK49aub+a7T1nNE66EJbZBMnBgoC1UbCZ5n6bsZKBRga4KgBRTMn/pFkeCZSYtNeSyMxPDM0AXWELk2A==
@@ -17382,6 +17557,11 @@ tiny-glob@^0.2.9:
globalyzer "0.1.0"
globrex "^0.1.2"
+tinycolor2@^1.6.0:
+ version "1.6.0"
+ resolved "https://registry.yarnpkg.com/tinycolor2/-/tinycolor2-1.6.0.tgz#f98007460169b0263b97072c5ae92484ce02d09e"
+ integrity sha512-XPaBkWQJdsf3pLKJV9p4qN/S+fm2Oj8AIPo1BTUhg5oxkvm9+SVEGFdhyOz7tTdUTfvxMiAs4sp6/eZO2Ew+pw==
+
tmp@^0.0.33:
version "0.0.33"
resolved "https://registry.yarnpkg.com/tmp/-/tmp-0.0.33.tgz#6d34335889768d21b2bcda0aa277ced3b1bfadf9"
@@ -18117,6 +18297,11 @@ update-notifier@^5.0.1:
semver-diff "^3.1.1"
xdg-basedir "^4.0.0"
+uplot@^1.6.30:
+ version "1.6.30"
+ resolved "https://registry.yarnpkg.com/uplot/-/uplot-1.6.30.tgz#1622a96b7cb2e50622c74330823c321847cbc147"
+ integrity sha512-48oVVRALM/128ttW19F2a2xobc2WfGdJ0VJFX00099CfqbCTuML7L2OrTKxNzeFP34eo1+yJbqFSoFAp2u28/Q==
+
uri-js@^4.2.2:
version "4.4.1"
resolved "https://registry.yarnpkg.com/uri-js/-/uri-js-4.4.1.tgz#9b1a52595225859e55f669d928f88c6c57f2a77e"