Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
primitiveValue="BrightenSpecific">
</igx-property-editor-property-description>
<igx-property-editor-property-description
propertyPath="CalloutsVisible"
propertyPath="AutoCalloutsVisible"
name="CalloutsVisibleEditor"
#calloutsVisibleEditor
label="Callouts: "
Expand Down Expand Up @@ -53,11 +53,7 @@
isVerticalZoomEnabled="false"
includedProperties="month, temperature"
[dataSource]="temperatureAnnotatedData"
[calloutsDataSource]="temperatureAnnotatedData"
calloutsVisible="true"
calloutsXMemberPath="index"
calloutsYMemberPath="temperature"
calloutsLabelMemberPath="tempInfo"
autoCalloutsVisible="true"
isCategoryHighlightingEnabled="true"
highlightingMode="BrightenSpecific"
highlightingBehavior="NearestItemsAndSeries"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
isHorizontal="true"
isWrappingEnabled="true">
<igx-property-editor-property-description
propertyPath="CalloutsVisible"
propertyPath="AutoCalloutsVisible"
name="CalloutsVisibleEditor"
#calloutsVisibleEditor
label="Callouts Visible"
Expand All @@ -31,13 +31,10 @@
isVerticalZoomEnabled="false"
includedProperties="month, temperature"
[dataSource]="temperatureAnnotatedData"
[calloutsDataSource]="temperatureAnnotatedData"
calloutsVisible="true"
calloutsXMemberPath="index"
calloutsYMemberPath="temperature"
calloutsLabelMemberPath="tempInfo"
autoCalloutsVisible="true"
crosshairsAnnotationYAxisPrecision="0"
yAxisMaximumValue="35"
yAxisTitle="Degrees Celsius"
yAxisLabelLocation="OutsideRight">
</igx-category-chart>
</div>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"installDependencies":true,"startCommand":"turbo start","env":{"ENABLE_CJS_IMPORTS":true}}
103 changes: 103 additions & 0 deletions samples/charts/category-chart/annotations-custom/angular.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1,
"newProjectRoot": "projects",
"projects": {
"demo": {
"root": "",
"sourceRoot": "src",
"projectType": "application",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"outputPath": "dist/demo",
"index": "src/index.html",
"main": "src/main.ts",
"polyfills": "src/polyfills.ts",
"tsConfig": "src/config/tsconfig.app.json",
"assets": [
"src/assets"
],
"styles": [
"src/styles.scss"
],
"scripts": []
},
"configurations": {
"production": {
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod.ts"
}
],
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"namedChunks": false,
"aot": true,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true
}
}
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
"browserTarget": "demo:build"
},
"configurations": {
"production": {
"browserTarget": "demo:build:production"
}
}
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "demo:build"
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "src/test.ts",
"polyfills": "src/polyfills.ts",
"tsConfig": "src/config/tsconfig.spec.json",
"karmaConfig": "src/config/karma.conf.js",
"styles": [
"styles.css"
],
"scripts": [],
"assets": [
"src/assets"
]
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"src/config/tsconfig.app.json",
"src/config/tsconfig.spec.json"
],
"exclude": [
"**/node_modules/**"
]
}
}
}
}
},
"schematics": {
"@schematics/angular:component": {
"prefix": "app",
"styleext": "scss"
},
"@schematics/angular:directive": {
"prefix": "app"
}
}
}
47 changes: 47 additions & 0 deletions samples/charts/category-chart/annotations-custom/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"scripts": {
"ng": "ng",
"update": "ng update",
"start": "node --max_old_space_size=12192 node_modules/@angular/cli/bin/ng serve -o",
"build": "node --max_old_space_size=12192 node_modules/@angular/cli/bin/ng build --configuration production",
"lint": "ng lint"
},
"dependencies": {
"@angular/animations": "16.0.1",
"@angular/common": "16.0.1",
"@angular/compiler": "16.0.1",
"@angular/core": "16.0.1",
"@angular/forms": "16.0.1",
"@angular/platform-browser": "16.0.1",
"@angular/platform-browser-dynamic": "16.0.1",
"@types/hammerjs": "2.0.39",
"classlist.js": "1.1.20150312",
"core-js": "3.21.0",
"hammerjs": "2.0.8",
"igniteui-angular-core": "16.1.0",
"igniteui-angular-charts": "16.1.0",
"igniteui-angular-layouts": "16.1.0",
"igniteui-angular-inputs": "16.1.0",
"igniteui-webcomponents": "4.3.0-beta.0",
"intl": "1.2.5",
"jszip": "3.7.1",
"rxjs": "6.6.7",
"tslib": "2.3.1",
"web-animations-js": "2.3.2",
"zone.js": "0.13.0"
},
"devDependencies": {
"@angular-devkit/build-angular": "16.0.1",
"@angular/cli": "16.0.1",
"@angular/compiler-cli": "16.0.1",
"@angular/language-service": "16.0.1",
"@types/node": "14.14.28",
"codelyzer": "6.0.2",
"jasmine-core": "3.7.1",
"jasmine-spec-reporter": "~4.2.1",
"sass.js": "0.11.1",
"ts-node": "9.1.1",
"tslint": "~6.1.3",
"typescript": "5.0.4"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"infiniteLoopProtection": false,
"hardReloadOnChange": false,
"view": "browser"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
export class TemperatureAnnotatedDataItem {
public constructor(init: Partial<TemperatureAnnotatedDataItem>) {
Object.assign(this, init);
}

public index: number;
public tempInfo: string;
public temperature: number;
public month: string;

}
export class TemperatureAnnotatedData extends Array<TemperatureAnnotatedDataItem> {
public constructor() {
super();
this.push(new TemperatureAnnotatedDataItem(
{
index: 0,
tempInfo: `27°C`,
temperature: 27,
month: `Jan`
}));
this.push(new TemperatureAnnotatedDataItem(
{
index: 1,
tempInfo: `25°C`,
temperature: 25,
month: `Feb`
}));
this.push(new TemperatureAnnotatedDataItem(
{
index: 2,
tempInfo: `21°C`,
temperature: 21,
month: `Mar`
}));
this.push(new TemperatureAnnotatedDataItem(
{
index: 3,
tempInfo: `19°C`,
temperature: 19,
month: `Apr`
}));
this.push(new TemperatureAnnotatedDataItem(
{
index: 4,
tempInfo: `16°C`,
temperature: 16,
month: `May`
}));
this.push(new TemperatureAnnotatedDataItem(
{
index: 5,
tempInfo: `13°C`,
temperature: 13,
month: `Jun`
}));
this.push(new TemperatureAnnotatedDataItem(
{
index: 6,
tempInfo: `14°C`,
temperature: 14,
month: `Jul`
}));
this.push(new TemperatureAnnotatedDataItem(
{
index: 7,
tempInfo: `15°C`,
temperature: 15,
month: `Aug`
}));
this.push(new TemperatureAnnotatedDataItem(
{
index: 8,
tempInfo: `19°C`,
temperature: 19,
month: `Sep`
}));
this.push(new TemperatureAnnotatedDataItem(
{
index: 9,
tempInfo: `22°C`,
temperature: 22,
month: `Oct`
}));
this.push(new TemperatureAnnotatedDataItem(
{
index: 10,
tempInfo: `26°C`,
temperature: 26,
month: `Nov`
}));
this.push(new TemperatureAnnotatedDataItem(
{
index: 11,
tempInfo: `30°C`,
temperature: 30,
month: `Dec`
}));
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<div class="container vertical sample">
<div class="options vertical">
<igx-property-editor-panel
name="PropertyEditor"
#propertyEditor
[componentRenderer]="renderer"
[target]="chart"
descriptionType="CategoryChart"
isHorizontal="true"
isWrappingEnabled="true">
<igx-property-editor-property-description
propertyPath="CalloutsVisible"
name="CalloutsVisibleEditor"
#calloutsVisibleEditor
label="Callouts Visible"
shouldOverrideDefaultEditor="true"
primitiveValue="True">
</igx-property-editor-property-description>
</igx-property-editor-panel>
</div>
<div class="legend-title">
Average Temperature in Sydney
</div>
<div class="container fill">
<igx-category-chart
name="chart"
#chart
chartType="Column"
computedPlotAreaMarginMode="Series"
isHorizontalZoomEnabled="false"
isVerticalZoomEnabled="false"
includedProperties="month, temperature"
[dataSource]="temperatureAnnotatedData"
crosshairsAnnotationYAxisPrecision="0"
[calloutsDataSource]="temperatureAnnotatedData"
calloutsVisible="true"
calloutsXMemberPath="index"
calloutsYMemberPath="temperature"
calloutsLabelMemberPath="tempInfo"
yAxisMaximumValue="35"
yAxisLabelLocation="OutsideRight">
</igx-category-chart>
</div>
</div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/* styles are loaded the Shared CSS file located at:
https://static.infragistics.com/xplatform/css/samples/
*/
Loading