Skip to content

Commit b9608b1

Browse files
authored
Merge pull request ChartsCSS#9 from ramiy/main
Replace donut chart with radial chart
2 parents 57e0540 + eac741d commit b9608b1

File tree

8 files changed

+28
-28
lines changed

8 files changed

+28
-28
lines changed

src/.vuepress/components/chart-builder.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,8 @@ export default {
159159
{ id: 'column', label: 'Column', type: 'button' },
160160
{ id: 'area', label: 'Area', type: 'button' },
161161
{ id: 'line', label: 'Line', type: 'button' },
162+
{ id: 'radial', label: 'Radial', type: 'button', disabled: 'disabled' },
162163
{ id: 'pie', label: 'Pie', type: 'button', disabled: 'disabled' },
163-
{ id: 'donut', label: 'Donut', type: 'button', disabled: 'disabled' },
164164
{ id: 'radar', label: 'Radar', type: 'button', disabled: 'disabled' },
165165
{ id: 'polar', label: 'Polar', type: 'button', disabled: 'disabled' },
166166
],

src/.vuepress/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ module.exports = {
105105
'/charts/column',
106106
'/charts/area',
107107
'/charts/line',
108+
'/charts/radial',
108109
'/charts/pie',
109-
'/charts/donut',
110110
'/charts/polar',
111111
'/charts/radar',
112112
'/charts/mixed',

src/charts/README.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ Before using charts, check the development status. If a chart type is already re
1717
| [Column](./column/) | <Badge type="tip" vertical="middle" text="Released" /> | `charts-css column` |
1818
| [Area](./area/) | <Badge type="tip" vertical="middle" text="Released" /> | `charts-css area ` |
1919
| [Line](./line/) | <Badge type="tip" vertical="middle" text="Released" /> | `charts-css line` |
20+
| [Radial](./radial/) | <Badge type="warning" vertical="middle" text="Under Development" /> | `charts-css radial` |
2021
| [Pie](./pie/) | <Badge type="warning" vertical="middle" text="Under Development" /> | `charts-css pie` |
21-
| [Donut](./donut/) | <Badge type="warning" vertical="middle" text="Under Development" /> | `charts-css donut` |
2222
| [Radar](./radar/) | <Badge type="warning" vertical="middle" text="Under Development" /> | `charts-css radar` |
2323
| [Polar](./polar/) | <Badge type="warning" vertical="middle" text="Under Development" /> | `charts-css polar` |
2424

@@ -33,7 +33,7 @@ The current state of supported feature:
3333
}
3434
#features thead tr th:not(:first-of-type) {
3535
transform: rotate(-90deg);
36-
width: 60px;
36+
width: 40px;
3737
height: 80px;
3838
padding: 0;
3939
text-align: start;
@@ -52,8 +52,8 @@ The current state of supported feature:
5252
<th scope="col"> Column </th>
5353
<th scope="col"> Area </th>
5454
<th scope="col"> Line </th>
55+
<th scope="col"> Radial </th>
5556
<th scope="col"> Pie </th>
56-
<th scope="col"> Donut </th>
5757
<th scope="col"> Radar </th>
5858
<th scope="col"> Polar </th>
5959
</tr>
@@ -77,8 +77,8 @@ The current state of supported feature:
7777
<td> <status-v /> </td>
7878
<td> <status-v /> </td>
7979
<td> <status-v /> </td>
80-
<td> <status-d /> </td>
8180
<td> <status-x /> </td>
81+
<td> <status-d /> </td>
8282
<td> <status-x /> </td>
8383
<td> <status-x /> </td>
8484
</tr>
@@ -100,20 +100,20 @@ The current state of supported feature:
100100
<td> <status-v /> </td>
101101
<td> <status-v /> </td>
102102
<td> <status-d /> </td>
103-
<td> <status-x /> </td>
104-
<td> <status-x /> </td>
105-
<td> <status-x /> </td>
103+
<td> <status-d /> </td>
104+
<td> <status-d /> </td>
105+
<td> <status-d /> </td>
106106
</tr>
107107
<tr>
108108
<th scope="row"> <code>show-data-on-hover</code> </th>
109109
<td> <status-v /> </td>
110110
<td> <status-v /> </td>
111111
<td> <status-v /> </td>
112112
<td> <status-v /> </td>
113-
<td> <status-x /> </td>
114-
<td> <status-x /> </td>
115-
<td> <status-x /> </td>
116-
<td> <status-x /> </td>
113+
<td> <status-d /> </td>
114+
<td> <status-d /> </td>
115+
<td> <status-d /> </td>
116+
<td> <status-d /> </td>
117117
</tr>
118118
<tr>
119119
<th scope="row"> <code>reverse</code> </th>
@@ -177,9 +177,9 @@ The current state of supported feature:
177177
<td> <status-v /> </td>
178178
<td> <status-v /> </td>
179179
<td> <status-d /> </td>
180-
<td> <status-x /> </td>
181-
<td> <status-x /> </td>
182-
<td> <status-x /> </td>
180+
<td> <status-d /> </td>
181+
<td> <status-d /> </td>
182+
<td> <status-d /> </td>
183183
</tr>
184184
<tr>
185185
<th scope="row"> <code>show-*-secondary-axes</code> </th>
@@ -188,9 +188,9 @@ The current state of supported feature:
188188
<td> <status-v /> </td>
189189
<td> <status-v /> </td>
190190
<td> <status-d /> </td>
191-
<td> <status-x /> </td>
192-
<td> <status-x /> </td>
193-
<td> <status-x /> </td>
191+
<td> <status-d /> </td>
192+
<td> <status-d /> </td>
193+
<td> <status-d /> </td>
194194
</tr>
195195
<tr>
196196
<th scope="row"> <code>show-data-axes</code> </th>
@@ -231,8 +231,8 @@ The current state of supported feature:
231231
<td> <status-v /> </td>
232232
<td> <status-v /> </td>
233233
<td> <status-v /> </td>
234-
<td> <status-d /> </td>
235234
<td> <status-x /> </td>
235+
<td> <status-d /> </td>
236236
<td> <status-x /> </td>
237237
<td> <status-x /> </td>
238238
</tr>

src/charts/donut.md renamed to src/charts/radial.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
2-
permalink: /charts/donut/
2+
permalink: /charts/radial/
33
---
44

5-
# Donut <Badge type="warning" vertical="top" text="Under Development" />
5+
# Radial <Badge type="warning" vertical="top" text="Under Development" />
66

77
::: warning Note
88
This chart is still [under development](/development/roadmap/). It's not yet included in the latest release.

src/components/data.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,4 +405,4 @@ Some chart types require not only the `--size` variable but also the `--start` v
405405

406406
All `--size` variables should always be a unitless numbers between `0` to `1`. Why unitless? Because you should be able to change chart types without changing the unit in all the variables.
407407

408-
Rectangular charts use percentage as a unit of measurement while redial charts use degrees. To make it easier for users to switch between chart types, the framework deprecated units. Instead, it multiplies the `--size` by `100%` or by `360deg` depending on the chart type.
408+
Rectangular charts use percentage as a unit of measurement while radial charts use degrees. To make it easier for users to switch between chart types, the framework deprecated units. Instead, it multiplies the `--size` by `100%` or by `360deg` depending on the chart type.

src/development/roadmap.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Planned development and the release of new chart types:
1919

2020
* **Q3 2021** - Pie chart.
2121

22-
* **Q3 2021** - Donut chart.
22+
* **Q4 2021** - Radial chart.
2323

2424
* **Q4 2021** - Polar Chart.
2525

src/examples/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ Examples of different layouts for each chart type:
1616
* [Column Chart Examples](/examples/column/)
1717
* [Area Chart Examples](/examples/area/)
1818
* [Line Chart Examples](/examples/line/)
19+
* ~~[Radial Chart Examples](/examples/radial/)~~
1920
* ~~[Pie Chart Examples](/examples/pie/)~~
20-
* ~~[Donut Chart Examples](/examples/donut/)~~
2121
* ~~[Radar Chart Examples](/examples/radar/)~~
2222
* ~~[Polar Chart Examples](/examples/polar/)~~
2323

src/examples/donut.md renamed to src/examples/radial.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
---
2-
permalink: /examples/donut/
2+
permalink: /examples/radial/
33
editLink: false
44
prev: false
55
next: false
66
pageClass: example-page
77
---
88

9-
# Donut Examples
9+
# Radial Examples
1010

11-
<table class="charts-css donut">
11+
<table class="charts-css radial">
1212
<caption>Years Compared</caption>
1313
<thead>
1414
<tr>

0 commit comments

Comments
 (0)