@oliasoft-open-source/charts-library 5.0.2 → 5.0.3-beta-1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/dist/assets/{Color-YHDXOIA2-DvkV04os.js → Color-YHDXOIA2-BvfhVAjI.js} +1 -1
  2. package/dist/assets/{DocsRenderer-CFRXHY34-cMkmi-tX.js → DocsRenderer-CFRXHY34-CliORq5_.js} +3 -3
  3. package/dist/assets/{bar-chart.stories-Eq_jQ19D.js → bar-chart.stories-BMExUqt4.js} +1 -1
  4. package/dist/assets/{entry-preview-Cgd6khWs.js → entry-preview-Bqd2U7mX.js} +1 -1
  5. package/dist/assets/{get-draggableData-CQpLHCdg.js → get-draggableData-DS0HhINp.js} +1 -1
  6. package/dist/assets/{iframe-Bj1sRZW3.js → iframe-CB3H5nUS.js} +2 -2
  7. package/dist/assets/{legend-krJw8Ykb.js → legend-CD8XU7nW.js} +1 -1
  8. package/dist/assets/line-chart-D3YG7EEV.js +1 -0
  9. package/dist/assets/line-chart.stories-DY8ALwMk.js +1155 -0
  10. package/dist/assets/line-chart.test-case.stories-BXMQ2TyL.js +428 -0
  11. package/dist/assets/{preview-BNebtty_.js → preview-CiEdDnYv.js} +2 -2
  12. package/dist/assets/{preview-CASZ8WNA.js → preview-y81lG200.js} +1 -1
  13. package/dist/assets/{scatter-chart.stories-BCbRBdJY.js → scatter-chart.stories-sl5FPoGH.js} +1 -1
  14. package/dist/iframe.html +1 -1
  15. package/dist/index.js.js +64 -34
  16. package/dist/index.js.js.map +1 -1
  17. package/dist/index.json +1 -1
  18. package/dist/line-chart/controls/axes-options/axes-options-interfaces.d.ts +1 -0
  19. package/dist/line-chart/hooks/use-chart-functions.d.ts +2 -1
  20. package/dist/line-chart/state/action-types.d.ts +1 -0
  21. package/dist/line-chart/state/state.interfaces.d.ts +1 -0
  22. package/dist/project.json +1 -1
  23. package/dist/src/components/line-chart/controls/axes-options/axes-options-interfaces.d.ts +1 -0
  24. package/dist/src/components/line-chart/hooks/use-chart-functions.d.ts +1 -0
  25. package/dist/src/components/line-chart/state/action-types.d.ts +1 -0
  26. package/dist/src/components/line-chart/state/state.interfaces.d.ts +1 -0
  27. package/package.json +1 -1
  28. package/dist/assets/line-chart-TEIxShHM.js +0 -1
  29. package/dist/assets/line-chart.stories-CRpxf_tv.js +0 -1130
  30. package/dist/assets/line-chart.test-case.stories-Cb2jns7e.js +0 -142
@@ -1,142 +0,0 @@
1
- import{j as n}from"./jsx-runtime-Y5Ju2SGo.js";import{r as g}from"./index-eCxJ45ll.js";import{B as p}from"./legend-krJw8Ykb.js";import{L as r}from"./line-chart-TEIxShHM.js";import"./legend-context-vqtlaWwg.js";import"./index-B-BONL6g.js";import"./index-BGqSdrBK.js";import"./index-D3-0uUTW.js";import"./get-draggableData-CQpLHCdg.js";const c={data:{datasets:[{label:"Dataset 1",data:[{x:0,y:0},{x:5,y:25}]}]},options:{title:"Chart title",chartStyling:{height:"100%"}}},C={title:"LineChart / Test Cases",component:r,args:{chart:c}},a=()=>{const[t,x]=g.useState(!1);return n.jsxs(n.Fragment,{children:[n.jsx(p,{onClick:()=>x(!t),label:"Toggle size"}),n.jsx("div",{style:{height:t?300:null,width:t?300:null,padding:"var(--padding)",overflow:"auto"},children:n.jsx(r,{chart:c})})]})},e=()=>n.jsx(r,{chart:{data:{datasets:[{label:"Duration %",lineTension:"0",pointHitRadius:10,borderColor:"#dc3912",pointBackgroundColor:"#dc3912",borderWidth:2,pointRadius:4,data:[{x:3,y:0},{x:3,y:100}],yAxisID:"y2"}]},options:{direction:"vertical",axes:{x:[{label:"Duration (TempSim long) [d]",position:"bottom"}],y:[{label:"Probability"},{label:"Percentage [%]"}]},annotations:{annotationsData:[{annotationAxis:"y2",color:"darkgrey",value:16},{displayDragCoordinates:!1,color:"#ff9900",label:"P16",dragAxis:"y",enableDrag:!0,resizable:!1,type:"box",xMax:3,xMin:3,yMax:17,yMin:15,yScaleID:"y2"},{annotationAxis:"y2",color:"darkgrey",value:66},{displayDragCoordinates:!1,color:"#109618",label:"P66",dragAxis:"y",enableDrag:!0,resizable:!1,type:"box",xMax:3,xMin:3,yMax:67,yMin:65,yScaleID:"y2"},{annotationAxis:"y2",color:"darkgrey",value:78},{displayDragCoordinates:!1,color:"#990099",label:"P78",dragAxis:"y",enableDrag:!0,resizable:!1,type:"box",xMax:3,xMin:3,yMax:79,yMin:77,yScaleID:"y2"},{annotationAxis:"y2",color:"darkgrey",value:90},{displayDragCoordinates:!1,color:"#0099c6",label:"P90",dragAxis:"y",enableDrag:!0,resizable:!1,type:"box",xMax:3,xMin:3,yMax:91,yMin:89,yScaleID:"y2"}],enableDragAnnotation:!0,showAnnotations:!0},additionalAxesOptions:{range:{x:{min:3}},chartScaleType:"linear",reverse:!1},graph:{showMinorGridlines:!0},chartStyling:{height:"100%"},chartOptions:{showPoints:!1,enableDragAnnotation:!0}}}});a.__docgenInfo={description:"",methods:[],displayName:"TestLegendDropzoneResizing"};e.__docgenInfo={description:"",methods:[],displayName:"PartialRangeWithSimilarValues"};var o,i,l;a.parameters={...a.parameters,docs:{...(o=a.parameters)==null?void 0:o.docs,source:{originalSource:`() => {
2
- const [isSmall, setIsSmall] = useState(false);
3
- return <>
4
- <Button onClick={() => setIsSmall(!isSmall)} label="Toggle size" />
5
- <div style={{
6
- height: isSmall ? 300 : null,
7
- width: isSmall ? 300 : null,
8
- padding: 'var(--padding)',
9
- overflow: 'auto'
10
- }}>
11
- <LineChart chart={basicChart} />
12
- </div>
13
- </>;
14
- }`,...(l=(i=a.parameters)==null?void 0:i.docs)==null?void 0:l.source}}};var s,d,y;e.parameters={...e.parameters,docs:{...(s=e.parameters)==null?void 0:s.docs,source:{originalSource:`() => {
15
- return <LineChart chart={{
16
- data: {
17
- datasets: [{
18
- label: 'Duration %',
19
- lineTension: '0',
20
- pointHitRadius: 10,
21
- borderColor: '#dc3912',
22
- pointBackgroundColor: '#dc3912',
23
- borderWidth: 2,
24
- pointRadius: 4,
25
- data: [{
26
- x: 3,
27
- y: 0
28
- }, {
29
- x: 3,
30
- y: 100
31
- }],
32
- yAxisID: 'y2'
33
- }]
34
- },
35
- options: {
36
- direction: 'vertical',
37
- axes: {
38
- x: [{
39
- label: 'Duration (TempSim long) [d]',
40
- position: 'bottom'
41
- }],
42
- y: [{
43
- label: 'Probability'
44
- }, {
45
- label: 'Percentage [%]'
46
- }]
47
- },
48
- annotations: {
49
- annotationsData: [{
50
- annotationAxis: 'y2',
51
- color: 'darkgrey',
52
- value: 16
53
- }, {
54
- displayDragCoordinates: false,
55
- color: '#ff9900',
56
- label: 'P16',
57
- dragAxis: 'y',
58
- enableDrag: true,
59
- resizable: false,
60
- type: 'box',
61
- xMax: 3,
62
- xMin: 3,
63
- yMax: 17,
64
- yMin: 15,
65
- yScaleID: 'y2'
66
- }, {
67
- annotationAxis: 'y2',
68
- color: 'darkgrey',
69
- value: 66
70
- }, {
71
- displayDragCoordinates: false,
72
- color: '#109618',
73
- label: 'P66',
74
- dragAxis: 'y',
75
- enableDrag: true,
76
- resizable: false,
77
- type: 'box',
78
- xMax: 3,
79
- xMin: 3,
80
- yMax: 67,
81
- yMin: 65,
82
- yScaleID: 'y2'
83
- }, {
84
- annotationAxis: 'y2',
85
- color: 'darkgrey',
86
- value: 78
87
- }, {
88
- displayDragCoordinates: false,
89
- color: '#990099',
90
- label: 'P78',
91
- dragAxis: 'y',
92
- enableDrag: true,
93
- resizable: false,
94
- type: 'box',
95
- xMax: 3,
96
- xMin: 3,
97
- yMax: 79,
98
- yMin: 77,
99
- yScaleID: 'y2'
100
- }, {
101
- annotationAxis: 'y2',
102
- color: 'darkgrey',
103
- value: 90
104
- }, {
105
- displayDragCoordinates: false,
106
- color: '#0099c6',
107
- label: 'P90',
108
- dragAxis: 'y',
109
- enableDrag: true,
110
- resizable: false,
111
- type: 'box',
112
- xMax: 3,
113
- xMin: 3,
114
- yMax: 91,
115
- yMin: 89,
116
- yScaleID: 'y2'
117
- }],
118
- enableDragAnnotation: true,
119
- showAnnotations: true
120
- },
121
- additionalAxesOptions: {
122
- range: {
123
- x: {
124
- min: 3
125
- }
126
- },
127
- chartScaleType: 'linear',
128
- reverse: false
129
- },
130
- graph: {
131
- showMinorGridlines: true
132
- },
133
- chartStyling: {
134
- height: '100%'
135
- },
136
- chartOptions: {
137
- showPoints: false,
138
- enableDragAnnotation: true
139
- }
140
- }
141
- }} />;
142
- }`,...(y=(d=e.parameters)==null?void 0:d.docs)==null?void 0:y.source}}};const v=["TestLegendDropzoneResizing","PartialRangeWithSimilarValues"];export{e as PartialRangeWithSimilarValues,a as TestLegendDropzoneResizing,v as __namedExportsOrder,C as default};