forked from liferay/clay
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes liferay#456
- Loading branch information
Julien Castelain
authored and
Kien Do
committed
Feb 21, 2018
1 parent
b5d98ce
commit 416bb92
Showing
21 changed files
with
1,183 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
82 changes: 82 additions & 0 deletions
82
packages/claycss.com/src/pages/docs/components/charts/advanced/axis_label.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
--- | ||
title: "Axis Label" | ||
description: "" | ||
layout: "guide" | ||
weight: 0 | ||
--- | ||
|
||
###### {$page.description} | ||
|
||
<article id="1"> | ||
|
||
{call ClayChart.render} | ||
{param columns: [ | ||
[ | ||
'id': 'data1', | ||
'data': [10, 70, 30, 120, 20, 10], | ||
'axis': 'y' | ||
], | ||
[ | ||
'id': 'data2', | ||
'data': [100, 150, 120, 90, 10, 55], | ||
'axis': 'y2' | ||
] | ||
] /} | ||
{param axisY: [ | ||
'label': 'Y Axis Label' | ||
] /} | ||
{param axisY2: [ | ||
'label': 'Y2 Axis Label', | ||
'show': true | ||
] /} | ||
{/call} | ||
|
||
|
||
```soy | ||
{call ClayChart.render} | ||
{param columns: [ | ||
[ | ||
'id': 'data1', | ||
'data': [10, 70, 30, 120, 20, 10], | ||
'axis': 'y' | ||
], | ||
[ | ||
'id': 'data2', | ||
'data': [100, 150, 120, 90, 10, 55], | ||
'axis': 'y2' | ||
] | ||
] /} | ||
{param axisY: [ | ||
'label': 'Y Axis Label' | ||
] /} | ||
{param axisY2: [ | ||
'label': 'Y2 Axis Label', | ||
'show': true | ||
] /} | ||
{/call} | ||
``` | ||
|
||
```jsx | ||
<Chart | ||
columns={[ | ||
{ | ||
id: 'data1', | ||
data: [10, 70, 30, 120, 20, 10], | ||
axis: 'y' | ||
}, | ||
{ | ||
id: 'data2', | ||
data: [100, 150, 120, 90, 10, 55], | ||
axis: 'y2' | ||
} | ||
]} | ||
axisY={ | ||
label: 'Y Axis Label' | ||
} | ||
axisY2={ | ||
label: 'Y2 Axis Label', | ||
show: true | ||
} | ||
/> | ||
``` | ||
</article> |
76 changes: 76 additions & 0 deletions
76
packages/claycss.com/src/pages/docs/components/charts/advanced/axis_range.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
--- | ||
title: "Axis Range" | ||
description: "" | ||
layout: "guide" | ||
weight: 1 | ||
--- | ||
|
||
###### {$page.description} | ||
|
||
<article id="1"> | ||
|
||
{call ClayChart.render} | ||
{param columns: [ | ||
[ | ||
'id': 'data1', | ||
'data': [10, 90, 30, 120, 20, 160], | ||
'axis': 'y' | ||
], | ||
[ | ||
'id': 'data2', | ||
'data': [200, 150, 120, 90, 10, 75], | ||
'axis': 'y2' | ||
] | ||
] /} | ||
{param axisY2: [ | ||
'max': 230, | ||
'min': 10, | ||
'show': true | ||
] /} | ||
{/call} | ||
|
||
|
||
```soy | ||
{call ClayChart.render} | ||
{param columns: [ | ||
[ | ||
'id': 'data1', | ||
'data': [10, 90, 30, 120, 20, 160], | ||
'axis': 'y' | ||
], | ||
[ | ||
'id': 'data2', | ||
'data': [200, 150, 120, 90, 10, 75], | ||
'axis': 'y2' | ||
] | ||
] /} | ||
{param axisY2: [ | ||
'max': 230, | ||
'min': 10, | ||
'show': true | ||
] /} | ||
{/call} | ||
``` | ||
|
||
```jsx | ||
<Chart | ||
columns={[ | ||
{ | ||
id: 'data1', | ||
data: [10, 90, 30, 120, 20, 160], | ||
axis: 'y' | ||
}, | ||
{ | ||
id: 'data2', | ||
data: [200, 150, 120, 90, 10, 75], | ||
axis: 'y2' | ||
} | ||
]} | ||
axisY2={ | ||
max: 230, | ||
min: 10, | ||
show: true | ||
} | ||
/> | ||
``` | ||
</article> |
61 changes: 61 additions & 0 deletions
61
packages/claycss.com/src/pages/docs/components/charts/advanced/data_color.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
--- | ||
title: "Data Color" | ||
description: "" | ||
layout: "guide" | ||
weight: 2 | ||
--- | ||
|
||
###### {$page.description} | ||
|
||
<article id="1"> | ||
|
||
{call ClayChart.render} | ||
{param columns: [ | ||
[ | ||
'id': 'data1', | ||
'data': [10, 90, 30, 120, 20, 160], | ||
'color': 'hotpink' | ||
], | ||
[ | ||
'id': 'data2', | ||
'data': [200, 150, 120, 90, 10, 75], | ||
'color': 'cadetblue' | ||
] | ||
] /} | ||
{/call} | ||
|
||
|
||
```soy | ||
{call ClayChart.render} | ||
{param columns: [ | ||
[ | ||
'id': 'data1', | ||
'data': [10, 90, 30, 120, 20, 160], | ||
'color': 'hotpink' | ||
], | ||
[ | ||
'id': 'data2', | ||
'data': [200, 150, 120, 90, 10, 75], | ||
'color': 'cadetblue' | ||
] | ||
] /} | ||
{/call} | ||
``` | ||
|
||
```jsx | ||
<Chart | ||
columns={[ | ||
{ | ||
id: 'data1', | ||
data: [10, 90, 30, 120, 20, 160], | ||
color: 'hotpink' | ||
}, | ||
{ | ||
id: 'data2', | ||
data: [200, 150, 120, 90, 10, 75], | ||
color: 'cadetblue' | ||
} | ||
]} | ||
/> | ||
``` | ||
</article> |
78 changes: 78 additions & 0 deletions
78
packages/claycss.com/src/pages/docs/components/charts/advanced/grid_lines.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
--- | ||
title: "Gridlines" | ||
description: "" | ||
layout: "guide" | ||
weight: 3 | ||
--- | ||
|
||
###### {$page.description} | ||
|
||
<article id="1"> | ||
|
||
{call ClayChart.render} | ||
{param columns: [ | ||
[ | ||
'id': 'data1', | ||
'data': [10, 70, 30, 120, 20, 10] | ||
], | ||
[ | ||
'id': 'data2', | ||
'data': [100, 150, 120, 90, 10, 55] | ||
] | ||
] /} | ||
{param grid: [ | ||
'x': [ | ||
'show': true | ||
], | ||
'y': [ | ||
'show': false | ||
] | ||
] /} | ||
{/call} | ||
|
||
```soy | ||
{call ClayChart.render} | ||
{param columns: [ | ||
[ | ||
'id': 'data1', | ||
'data': [10, 70, 30, 120, 20, 10] | ||
], | ||
[ | ||
'id': 'data2', | ||
'data': [100, 150, 120, 90, 10, 55] | ||
] | ||
] /} | ||
{param grid: [ | ||
'x': [ | ||
'show': true | ||
], | ||
'y': [ | ||
'show': false | ||
] | ||
] /} | ||
{/call} | ||
``` | ||
|
||
```jsx | ||
<Chart | ||
columns={[ | ||
{ | ||
id: 'data1', | ||
data: [10, 70, 30, 120, 20, 10] | ||
}, | ||
{ | ||
id: 'data2', | ||
data: [100, 150, 120, 90, 10, 55] | ||
} | ||
]} | ||
grid={ | ||
x: { | ||
show: true | ||
}, | ||
y: { | ||
show: true | ||
} | ||
} | ||
/> | ||
``` | ||
</article> |
26 changes: 26 additions & 0 deletions
26
packages/claycss.com/src/pages/docs/components/charts/advanced/index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- | ||
title: "Advanced Examples" | ||
url: "/docs/components/charts/avanced/axis_label.html" | ||
weight: 4 | ||
--- | ||
|
||
{namespace pageChartsAdvancedIndex} | ||
|
||
/** | ||
* | ||
*/ | ||
{template .render} | ||
{/template} | ||
|
||
/** | ||
* @param page | ||
*/ | ||
{template .soyweb} | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta http-equiv="refresh" content="0; URL='{$page.url}'"> | ||
</head> | ||
</html> | ||
{/template} |
Oops, something went wrong.