@@ -15,85 +15,52 @@ export default () => {
1515
1616 return (
1717 < Page >
18- < Navbar title = "Area Chart" backLink = "Back" />
19- < Block strongIos outlineIos >
18+ < Navbar title = "Area Chart" backLink />
19+ < Block strong inset >
2020 < p > Framework7 comes with simple to use and fully responsive Area Chart component.</ p >
2121 < p >
2222 Area Chart generates SVG layout which makes it also compatible with SSR (server side
2323 rendering).
2424 </ p >
2525 </ Block >
2626 < BlockTitle > Simple Area Chart</ BlockTitle >
27- < Block strongIos outlineIos >
27+ < Block strong inset >
2828 < AreaChart
2929 datasets = { [
30- {
31- color : '#f00' ,
32- values : [ 0 , 100 , 250 , 300 , 175 , 400 ] ,
33- } ,
34- {
35- color : '#00f' ,
36- values : [ 100 , 75 , 133 , 237 , 40 , 200 ] ,
37- } ,
38- {
39- color : '#ff0' ,
40- values : [ 100 , 300 , 127 , 40 , 250 , 80 ] ,
41- } ,
30+ { color : '#f00' , values : [ 0 , 100 , 250 , 300 , 175 , 400 ] } ,
31+ { color : '#00f' , values : [ 100 , 75 , 133 , 237 , 40 , 200 ] } ,
32+ { color : '#ff0' , values : [ 100 , 300 , 127 , 40 , 250 , 80 ] } ,
4233 ] }
4334 />
4435 </ Block >
4536 < BlockTitle > Area Chart With Tooltip</ BlockTitle >
46- < Block strongIos outlineIos >
37+ < Block strong inset >
4738 < AreaChart
4839 tooltip
4940 datasets = { [
50- {
51- label : 'Red data' ,
52- color : '#f00' ,
53- values : [ 100 , 75 , 133 , 237 , 40 , 200 ] ,
54- } ,
55- {
56- label : 'Blue data' ,
57- color : '#00f' ,
58- values : [ 100 , 300 , 127 , 40 , 250 , 80 ] ,
59- } ,
60- {
61- label : 'Yellow data' ,
62- color : '#ff0' ,
63- values : [ 0 , 100 , 250 , 300 , 175 , 400 ] ,
64- } ,
41+ { label : 'Red data' , color : '#f00' , values : [ 100 , 75 , 133 , 237 , 40 , 200 ] } ,
42+ { label : 'Blue data' , color : '#00f' , values : [ 100 , 300 , 127 , 40 , 250 , 80 ] } ,
43+ { label : 'Yellow data' , color : '#ff0' , values : [ 0 , 100 , 250 , 300 , 175 , 400 ] } ,
6544 ] }
6645 />
6746 </ Block >
6847 < BlockTitle > Area Chart With Axis</ BlockTitle >
69- < Block strongIos outlineIos >
48+ < Block strong inset >
7049 < AreaChart
7150 tooltip
7251 axis
7352 axisLabels = { dates }
7453 formatAxisLabel = { ( date ) => axisDateFormat . format ( date ) }
7554 formatTooltipAxisLabel = { ( date ) => tooltipDateFormat . format ( date ) }
7655 datasets = { [
77- {
78- label : 'Green data' ,
79- color : '#0f0' ,
80- values : [ 100 , 75 , 133 , 237 ] ,
81- } ,
82- {
83- label : 'Red data' ,
84- color : '#f00' ,
85- values : [ 100 , 300 , 127 , 47 ] ,
86- } ,
87- {
88- label : 'Yellow data' ,
89- color : '#ff0' ,
90- values : [ 0 , 100 , 250 , 307 ] ,
91- } ,
56+ { label : 'Green data' , color : '#0f0' , values : [ 100 , 75 , 133 , 237 ] } ,
57+ { label : 'Red data' , color : '#f00' , values : [ 100 , 300 , 127 , 47 ] } ,
58+ { label : 'Yellow data' , color : '#ff0' , values : [ 0 , 100 , 250 , 307 ] } ,
9259 ] }
9360 />
9461 </ Block >
9562 < BlockTitle > Area Chart With Legend</ BlockTitle >
96- < Block strongIos outlineIos >
63+ < Block strong inset >
9764 < AreaChart
9865 tooltip
9966 axis
@@ -103,26 +70,14 @@ export default () => {
10370 formatAxisLabel = { ( date ) => axisDateFormat . format ( date ) }
10471 formatTooltipAxisLabel = { ( date ) => tooltipDateFormat . format ( date ) }
10572 datasets = { [
106- {
107- label : 'Red data' ,
108- color : '#f00' ,
109- values : [ 100 , 300 , 127 , 47 ] ,
110- } ,
111- {
112- label : 'Blue data' ,
113- color : '#00f' ,
114- values : [ 100 , 75 , 133 , 237 ] ,
115- } ,
116- {
117- label : 'Yellow data' ,
118- color : '#ff0' ,
119- values : [ 0 , 100 , 250 , 307 ] ,
120- } ,
73+ { label : 'Red data' , color : '#f00' , values : [ 100 , 300 , 127 , 47 ] } ,
74+ { label : 'Blue data' , color : '#00f' , values : [ 100 , 75 , 133 , 237 ] } ,
75+ { label : 'Yellow data' , color : '#ff0' , values : [ 0 , 100 , 250 , 307 ] } ,
12176 ] }
12277 />
12378 </ Block >
12479 < BlockTitle > Lines Chart</ BlockTitle >
125- < Block strongIos outlineIos >
80+ < Block strong inset >
12681 < AreaChart
12782 tooltip
12883 axis
@@ -133,21 +88,9 @@ export default () => {
13388 formatAxisLabel = { ( date ) => axisDateFormat . format ( date ) }
13489 formatTooltipAxisLabel = { ( date ) => tooltipDateFormat . format ( date ) }
13590 datasets = { [
136- {
137- label : 'Red data' ,
138- color : '#f00' ,
139- values : [ 0 , 300 , 127 , 47 ] ,
140- } ,
141- {
142- label : 'Blue data' ,
143- color : '#00f' ,
144- values : [ 0 , 75 , 133 , 237 ] ,
145- } ,
146- {
147- label : 'Green data' ,
148- color : '#0f0' ,
149- values : [ 0 , 100 , 250 , 307 ] ,
150- } ,
91+ { label : 'Red data' , color : '#f00' , values : [ 0 , 300 , 127 , 47 ] } ,
92+ { label : 'Blue data' , color : '#00f' , values : [ 0 , 75 , 133 , 237 ] } ,
93+ { label : 'Green data' , color : '#0f0' , values : [ 0 , 100 , 250 , 307 ] } ,
15194 ] }
15295 />
15396 </ Block >
0 commit comments