Skip to content

Commit 5d8c19a

Browse files
author
pipeline
committed
feature(EJ2-5307): Added description changes to chart.
1 parent 257087c commit 5d8c19a

14 files changed

+27
-19
lines changed

src/chart/annotation-plnkr.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

src/chart/annotation.component.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Component, ViewEncapsulation, ViewChild } from '@angular/core';
22
import {
33
ILoadedEventArgs, IMouseEventArgs, ChartComponent, IAccLoadedEventArgs, AccumulationTheme,
4-
SelectionMode, ChartTheme, Series
4+
SelectionMode, ChartTheme, Series, IAccResizeEventArgs
55
} from '@syncfusion/ej2-ng-charts';
66
import {
77
AccumulationChart, AccumulationDataLabel
@@ -129,7 +129,10 @@ export class AnnotationChartComponent {
129129
selectedTheme = selectedTheme ? selectedTheme : 'Material';
130130
args.accumulation.theme = <ChartTheme>(selectedTheme.charAt(0).toUpperCase() + selectedTheme.slice(1));
131131
},
132-
legendSettings: { visible: false }
132+
legendSettings: { visible: false },
133+
resized:  (args: IAccResizeEventArgs) => {
134+
location.reload();
135+
}
133136
});
134137
this.pie.appendTo('#chart_annotation');
135138
}

src/chart/default-doughnut.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,13 @@
1414
</div>
1515
</div>
1616
<div id="description">
17-
<p> In this example, you can see how to render doughnut chart. You can use <code>radius</code> and <code>innerRadius</code> properties to render the doughnut and also use <code>border</code>, <code>fill</code> properties to customize the point. <code>dataLabel</code> are used to represent individual data and its value.</p>
17+
<p> In this example, you can see how to render doughnut chart. You can use <code>radius</code> and <code>innerRadius</code> properties to render the doughnut and also use <code>border</code>, <code>fill</code> properties to customize the point. <code>dataLabel</code> is used to represent individual data and its value.</p>
1818
<p> <code>Tooltip</code> is enabled in this example, to see the tooltip in action, hover a point or tap on a point in touch enabled devices.</p>
19+
<p style="font-weight: 500">Injecting Module</p>
20+
<p>
21+
AccumulationChart component features are segregated into individual feature-wise modules. To use legend, we need to Inject
22+
<code>AccumulationLegend</code> into the <code>@NgModule.providers</code> section.
23+
</p>
1924
</div>
2025
<style>
2126
.control-section {

src/chart/default-pie.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
</div>
7272
</div>
7373
<div id="description">
74-
<p> In this example, you can see how to render and configure the pie chart. You can use <code>border</code>, <code>fill</code> properties to customize the pie point. <code>dataLabel</code> are used to represent individual data and its value.</p>
74+
<p> In this example, you can see how to render and configure the pie chart. You can use <code>border</code>, <code>fill</code> properties to customize the pie point. <code>dataLabel</code> is used to represent individual data and its value.</p>
7575
<p> <code>Tooltip</code> is enabled in this example, to see the tooltip in action, hover a point or tap on a point in touch enabled devices.</p>
7676
</div>
7777
<style>

src/chart/doughnut.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<p> In this example, you can see how to render and configure the pie chart. You can use
1717
<code>border</code>,
1818
<code>fill</code> properties to customize the pie point.
19-
<code>dataLabel</code> are used to represent individual data and its value.</p>
19+
<code>dataLabel</code> is used to represent individual data and its value.</p>
2020
<p>
2121
<code>Tooltip</code> is enabled in this example, to see the tooltip in action, hover a point or tap on a point in touch enabled devices.</p>
2222
</div>

src/chart/drilldown-pie.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@
2424
<div id="description">
2525
<p> In this example, you can see how to achieve <code>drilldown</code> concept using pie control. An automobile sales has been shown by different category, on clicking each category, you can navigate to next level, which shows the sales of those category
2626
in terms of company.</p>
27-
<p> Legend and datalabel is used in this sample.</p>
27+
<p> Datalabel is used in this sample.</p>
2828
<p style="font-weight: 500">Injecting Module</p>
29-
<p> Accumulation chart component features are segregated into individual feature-wise modules. To use legend, we need to inject <code>AccumulationLegendService</code> into the <code>@NgModule.providers</code> section.. </p>
29+
<p> Accumulation chart component features are segregated into individual feature-wise modules. To use datalabel, we need to inject <code>AccumulationDataLabelService</code> into the <code>@NgModule.providers</code> section.. </p>
3030
</div>
3131
<style>
3232
.control-section {

src/chart/error-bar.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@
9191
<p>
9292
In this example, you can see how to render and configure the error bar charts. Line type charts are used for cartesian type
9393
series. You can use error bar by set <code>visible</code> property to true. You can change the error bar
94-
rendering type using <code>type</code> property. like fixedValue, percentage, standardDeviation, standardError and
95-
custom) option of errorBar. To change the error bar line length you can use <code>verticalError</code> property.
94+
rendering type using <code>type</code> property like fixedValue, percentage, standardDeviation, standardError and
95+
custom option of errorBar. To change the error bar line length you can use <code>verticalError</code> property.
9696
</p>
9797
<p>Chart supports the following error bar types.
9898
</p>

src/chart/funnel.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
</p>
4949
</div>
5050
<div id="description">
51-
<p> In this example, you can see how to render and configure the funnel chart.<code>dataLabel</code> are used to represent individual data and its value.</p>
51+
<p> In this example, you can see how to render and configure the funnel chart.<code>dataLabel</code> is used to represent individual data and its value.</p>
5252
<p> <code>Tooltip</code> is enabled in this example, to see the tooltip in action, hover a point or tap on a point in touch enabled devices.</p>
5353
<p style="font-weight: 500">Injecting Module</p>
5454
<p>

src/chart/grouping.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
<div id="description">
3838
<p> In this example, you can see how to <code>group</code> points in pie chart</p>
3939
<p> Points having value below the <code>'groupTo'</code> value are grouped and showed as separate point. You can customise the apearance of the point using <code>'poinRender'</code> event.</p>
40-
<p> DataLabel are used to represent individual data and its value.</p>
40+
<p> DataLabel is used to represent individual data and its value.</p>
4141
</div>
4242
<style>
4343
.control-section {

src/chart/multiple-axes.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
Tooltip is enabled in this example, to see the tooltip in action, hover a point or tap on a point in touch enabled devices.
2727
</p>
2828
<p>
29-
More information on the multipe axis can be found in this
29+
More information on the multiple axis can be found in this
3030
<a target="_blank" href="http://ej2.syncfusion.com/angular/documentation/chart/api-chartComponent.html#axes-axismodel">documentation section</a>.
3131
</p>
3232
</div>

0 commit comments

Comments
 (0)