Skip to content

Commit 69f34c9

Browse files
author
pipeline
committed
Ej2 4407 chart ng sb mas
1 parent b9a561a commit 69f34c9

File tree

7 files changed

+23
-21
lines changed

7 files changed

+23
-21
lines changed

src/chart/annotation.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,11 @@
2121
</div>
2222
<div id="description">
2323
<p>
24-
In this example, you can see how to render and configure annotation feature in chart. In this example, we have used a pie
25-
chart in catesain axis using annotation support. While selecting a category, data's are showed in pie.
24+
In this example, you can see how to render and configure annotation feature in chart. We have used a pie chart to depict the sales for each year using annotation support, while selecting a particular year from the StackedColumn series, the respective data's are showed in pie.
25+
An annotation can hold any html element as its content, here we have added the Pie chart as its content.  
2626
</p>
27+
28+
2729
<p style="font-weight: 500">Injecting Module</p>
2830
<p>
2931
Chart component features are segregated into individual feature-wise modules. To use Annotation feature, we need to inject

src/chart/datalabel-template-plnkr.json

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

src/chart/datalabel-template.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
<ej-chart style='display:block' id='chartcontainer' [title]='title' [primaryXAxis]='primaryXAxis' [primaryYAxis]='primaryYAxis'
33
(load)='load($event)' (textRender)='textRender($event)'>
44
<e-series-collection>
5-
<e-series [dataSource]='data' type='Line' xName='x' yName='y' name='Male' width=2 [marker]='marker1' legendShape='Rectangle'>
5+
<e-series [dataSource]='data' type='Line' xName='x' yName='y' name='Male' width=2 [marker]='marker1'>
66
</e-series>
7-
<e-series [dataSource]='data1' type='Line' xName='x' yName='y' name='Female' width=2 [marker]='marker2' legendShape='Rectangle'>
7+
<e-series [dataSource]='data1' type='Line' xName='x' yName='y' name='Female' width=2 [marker]='marker2'>
88
</e-series>
99
</e-series-collection>
1010
</ej-chart>

src/chart/range-column-plnkr.json

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

src/chart/range-column.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export class RangeColumnChartComponent {
4040
public title: string = 'Maximum and Minimum Temperature';
4141
public tooltip: Object = {
4242
enable: true,
43-
format: '${point.x}<br>high: ${point.high}<br>low: ${point.low}'
43+
format: '${point.x}<br>High: ${point.high}<br>Low: ${point.low}'
4444
};
4545
public load(args: ILoadedEventArgs): void {
4646
let selectedTheme: string = location.hash.split('/')[1];

src/circulargauge/circulargauge.module.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ import { DirectionComponent } from './direction.component';
2121

2222

2323
export const circulargaugeAppRoutes: Object[] = [
24-
{ path: ':theme/circulargauge/default', component: DefaultComponent, name: 'Default', order: '01', category: 'Circular Gauge'},
25-
{ path: ':theme/circulargauge/range', component: RangeComponent, name: 'Range', order: '01', category: 'Circular Gauge' },
26-
{ path: ':theme/circulargauge/label', component: LabelComponent, name: 'Ticks and Labels', order: '01', category: 'Circular Gauge'},
27-
{ path: ':theme/circulargauge/annotation', component: AnnotationComponent , name: 'Annotation', order: '01', category: 'Circular Gauge'},
28-
{ path: ':theme/circulargauge/customization', component: CustomizationComponent, name: 'Gauge Customization', order: '01', category: 'Circular Gauge'},
29-
{ path: ':theme/circulargauge/direction', component: DirectionComponent, name: 'Direction Compass', order: '01', category: 'Circular Gauge'},
24+
{ path: ':theme/circulargauge/default', component: DefaultComponent, name: 'Default', order: '01', category: 'CircularGauge'},
25+
{ path: ':theme/circulargauge/range', component: RangeComponent, name: 'Range', order: '01', category: 'CircularGauge' },
26+
{ path: ':theme/circulargauge/label', component: LabelComponent, name: 'Ticks and Labels', order: '01', category: 'CircularGauge'},
27+
{ path: ':theme/circulargauge/annotation', component: AnnotationComponent , name: 'Annotation', order: '01', category: 'CircularGauge'},
28+
{ path: ':theme/circulargauge/customization', component: CustomizationComponent, name: 'Gauge Customization', order: '01', category: 'CircularGauge'},
29+
{ path: ':theme/circulargauge/direction', component: DirectionComponent, name: 'Direction Compass', order: '01', category: 'CircularGauge'},
3030
{ path: ':theme/circulargauge/pointer-image', component: PointerImageComponent, name: 'Pointer Image', order: '02', category: 'Pointer'},
3131
{ path: ':theme/circulargauge/pointers', component: PointersComponent, name: 'Pointer Customization', order: '02', category: 'Pointer'},
3232
{ path: ':theme/circulargauge/multiple-axis', component: MultipleAxisComponent, name: 'Multiple Axis', order: '03', category: 'Axes'},

src/lineargauge/lineargauge.module.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@ import { TooltipComponent } from './tooltip.component';
1515
import { StyleComponent } from './style.component';
1616

1717
export const lineargaugeAppRoutes: Object[] = [
18-
{ path: ':theme/lineargauge/default', component: DefaultComponent, name: 'Default', order: '01', category: 'Linear Gauge' },
19-
{ path: ':theme/lineargauge/container', component: ContainerComponent, name: 'Container', order: '01', category: 'Linear Gauge' },
20-
{ path: ':theme/lineargauge/ranges', component: RangesComponent, name: 'Ranges', order: '01', category: 'Linear Gauge' },
21-
{ path: ':theme/lineargauge/data', component: DataComponent, name: 'Data Sample', order: '01', category: 'Linear Gauge' },
22-
{ path: ':theme/lineargauge/axes', component: AxesComponent, name: 'Axes and Pointers', order: '01', category: 'Linear Gauge' },
23-
{ path: ':theme/lineargauge/annotation', component: AnnotationComponent, name: 'Annotation', order: '01', category: 'Linear Gauge' },
24-
{ path: ':theme/lineargauge/tooltip', component: TooltipComponent, name: 'Tooltip', order: '01', category: 'Linear Gauge' },
25-
{ path: ':theme/lineargauge/style', component: StyleComponent, name: 'Styles', order: '01', category: 'Linear Gauge' }
18+
{ path: ':theme/lineargauge/default', component: DefaultComponent, name: 'Default', order: '01', category: 'LinearGauge' },
19+
{ path: ':theme/lineargauge/container', component: ContainerComponent, name: 'Container', order: '01', category: 'LinearGauge' },
20+
{ path: ':theme/lineargauge/ranges', component: RangesComponent, name: 'Ranges', order: '01', category: 'LinearGauge' },
21+
{ path: ':theme/lineargauge/data', component: DataComponent, name: 'Data Sample', order: '01', category: 'LinearGauge' },
22+
{ path: ':theme/lineargauge/axes', component: AxesComponent, name: 'Axes and Pointers', order: '01', category: 'LinearGauge' },
23+
{ path: ':theme/lineargauge/annotation', component: AnnotationComponent, name: 'Annotation', order: '01', category: 'LinearGauge' },
24+
{ path: ':theme/lineargauge/tooltip', component: TooltipComponent, name: 'Tooltip', order: '01', category: 'LinearGauge' },
25+
{ path: ':theme/lineargauge/style', component: StyleComponent, name: 'Styles', order: '01', category: 'LinearGauge' }
2626
];
2727

2828
export const linearRouter: ModuleWithProviders = RouterModule.forChild(lineargaugeAppRoutes);

0 commit comments

Comments
 (0)