Skip to content

Commit fe273f3

Browse files
Anush2303Anush
andauthored
Add XMinXMax examples (#614)
Co-authored-by: Anush <[email protected]>
1 parent f1a271b commit fe273f3

File tree

7 files changed

+1176
-3
lines changed

7 files changed

+1176
-3
lines changed

apps/plotly_examples/src/components/DeclarativeChart.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ type DataType =
6464
| 'annotations';
6565

6666
const dataTypeRanges = {
67-
'general': [{ min: 1, max: 252 }, { min: 750, max: 758 }, { min: 840, max: 846 }, { min: 848, max: 853 }, { min: 855, max: 856 }, { min: 871, max: 871 }, { min: 893, max: 922 }, {min: 928, max: 944 }],
67+
'general': [{ min: 1, max: 252 }, { min: 750, max: 758 }, { min: 840, max: 846 }, { min: 848, max: 853 }, { min: 855, max: 856 }, { min: 871, max: 871 }, { min: 893, max: 922 }, {min: 928, max: 944 }, {min: 988, max: 991}],
6868
'largeData': [{ min: 253, max: 277 }, { min: 303, max: 332 }, { min: 759, max: 759 }, { min: 767, max: 767 }],
6969
'localization': [{ min: 278, max: 302 }],
7070
'seval': [{ min: 333, max: 376 }],

apps/plotly_examples/src/components/aggregated_chart_types.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -985,5 +985,9 @@
985985
"984": "VerticalStackedBar",
986986
"985": "Gantt",
987987
"986": "Gantt",
988-
"987": "Gantt"
988+
"987": "Gantt",
989+
"988": "Line",
990+
"989": "Line",
991+
"990": "Line",
992+
"991": "Line"
989993
}
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"data": [
3+
{
4+
"x": [-20, -10, 0, 10, 20, 28],
5+
"y": [5, 8, 12, 15, 18, 22],
6+
"mode": "lines+markers",
7+
"type": "scatter",
8+
"name": "Growth Rate",
9+
"line": {
10+
"width": 3,
11+
"dash": "solid"
12+
},
13+
"marker": {
14+
"size": 8
15+
}
16+
}
17+
],
18+
"layout": {
19+
"title": {
20+
"text": "Growth Rate Analysis"
21+
},
22+
"xaxis": {
23+
"title": {
24+
"text": "Days from Start"
25+
},
26+
"range": [-20, 40]
27+
},
28+
"yaxis": {
29+
"title": {
30+
"text": "Growth %"
31+
}
32+
}
33+
},
34+
"id": 988
35+
}

0 commit comments

Comments
 (0)