Skip to content

Commit 85d69e5

Browse files
committed
update all classes and ids to single style
1 parent 49d2919 commit 85d69e5

14 files changed

Lines changed: 32 additions & 46 deletions

File tree

apps/demos/Demos/Charts/ExportCustomMarkup/Angular/app/app.component.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
::ng-deep .chart {
1+
::ng-deep #chart {
22
position: absolute;
33
top: 12px;
44
right: 35px;
55
width: 480px;
66
height: 347px;
77
}
88

9-
::ng-deep .chart_environment {
9+
::ng-deep .chart-environment {
1010
width: 820px;
1111
position: relative;
1212
margin: 0 auto;

apps/demos/Demos/Charts/ExportCustomMarkup/Angular/app/app.component.html

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
<div class="chart_environment">
2-
<div id="custom_markup_container">
1+
<div class="chart-environment">
2+
<div id="custom-markup-container">
33
<svg version="1.1" width="820px" height="420px">
44
<path
55
d="M 0 0 L 820 0 L 820 420 L 0 420 L 0 0"
@@ -32,12 +32,7 @@
3232
</text>
3333
</svg>
3434
</div>
35-
<dx-chart
36-
id="chart"
37-
class="chart"
38-
[dataSource]="oilProductionData"
39-
palette="Violet"
40-
>
35+
<dx-chart id="chart" [dataSource]="oilProductionData" palette="Violet">
4136
<dxi-chart-series valueField="year1990" name="1990"></dxi-chart-series>
4237
<dxi-chart-series valueField="year2000" name="2000"></dxi-chart-series>
4338
<dxi-chart-series valueField="year2010" name="2010"></dxi-chart-series>

apps/demos/Demos/Charts/ExportCustomMarkup/Angular/app/app.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export class AppComponent {
5454
}
5555

5656
prepareMarkup() {
57-
const sourceContainer = document.getElementById('custom_markup_container');
57+
const sourceContainer = document.getElementById('custom-markup-container');
5858
const sourceElements = sourceContainer.querySelectorAll('*');
5959

6060
const svg = document.createElementNS('http://www.w3.org/2000/svg', 'svg');

apps/demos/Demos/Charts/ExportCustomMarkup/React/App.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,13 +83,12 @@ function App() {
8383
}, []);
8484

8585
return (
86-
<div id="chart-demo" className="chart-demo">
87-
<div className="chart_environment">
86+
<div id="chart-demo">
87+
<div className="chart-environment">
8888
<Form ref={childRef} />
8989
<Chart
9090
ref={chartRef}
9191
id="chart"
92-
className="chart"
9392
dataSource={dataSource}
9493
palette="Violet"
9594
>

apps/demos/Demos/Charts/ExportCustomMarkup/React/Form.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22

33
const Form = React.forwardRef<HTMLDivElement>((_, ref) => (
4-
<div id="custom_markup_container" ref={ref}>
4+
<div id="custom-markup-container" ref={ref}>
55
<svg width="820px" height="420px">
66
<path opacity="1" d="M 0 0 L 820 0 L 820 420 L 0 420 L 0 0" stroke="#999999" strokeWidth="1"
77
strokeLinecap="butt" fill="white" strokeLinejoin="miter"></path>

apps/demos/Demos/Charts/ExportCustomMarkup/React/styles.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
.chart-demo {
1+
#chart-demo {
22
height: 460px;
33
}
44

5-
.chart {
5+
#chart {
66
position: absolute;
77
top: 12px;
88
right: 35px;
99
width: 480px;
1010
height: 347px;
1111
}
1212

13-
.chart_environment {
13+
.chart-environment {
1414
width: 820px;
1515
position: relative;
1616
margin: 0 auto;

apps/demos/Demos/Charts/ExportCustomMarkup/ReactJs/App.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -79,16 +79,12 @@ function App() {
7979
);
8080
}, []);
8181
return (
82-
<div
83-
id="chart-demo"
84-
className="chart-demo"
85-
>
86-
<div className="chart_environment">
82+
<div id="chart-demo">
83+
<div className="chart-environment">
8784
<Form ref={childRef} />
8885
<Chart
8986
ref={chartRef}
9087
id="chart"
91-
className="chart"
9288
dataSource={dataSource}
9389
palette="Violet"
9490
>

apps/demos/Demos/Charts/ExportCustomMarkup/ReactJs/Form.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from 'react';
22

33
const Form = React.forwardRef((_, ref) => (
44
<div
5-
id="custom_markup_container"
5+
id="custom-markup-container"
66
ref={ref}
77
>
88
<svg

apps/demos/Demos/Charts/ExportCustomMarkup/ReactJs/styles.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
.chart-demo {
1+
#chart-demo {
22
height: 460px;
33
}
44

5-
.chart {
5+
#chart {
66
position: absolute;
77
top: 12px;
88
right: 35px;
99
width: 480px;
1010
height: 347px;
1111
}
1212

13-
.chart_environment {
13+
.chart-environment {
1414
width: 820px;
1515
position: relative;
1616
margin: 0 auto;

apps/demos/Demos/Charts/ExportCustomMarkup/Vue/App.vue

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
11
<template>
2-
<div
3-
id="chart-demo"
4-
class="chart-demo"
5-
>
6-
<div class="chart_environment">
2+
<div id="chart-demo">
3+
<div class="chart-environment">
74
<Form ref="form"/>
85
<DxChart
96
id="chart"
10-
class="chart"
117
ref="chart"
128
:data-source="dataSource"
139
palette="Violet"
@@ -131,19 +127,19 @@ function onClick(): void {
131127
}
132128
</script>
133129
<style>
134-
.chart-demo {
130+
#chart-demo {
135131
height: 460px;
136132
}
137133
138-
.chart {
134+
#chart {
139135
position: absolute;
140136
top: 12px;
141137
right: 35px;
142138
width: 480px;
143139
height: 347px;
144140
}
145141
146-
.chart_environment {
142+
.chart-environment {
147143
width: 820px;
148144
position: relative;
149145
margin: 0 auto;

0 commit comments

Comments
 (0)