Skip to content

Commit da41d2f

Browse files
authored
Merge pull request #17 from IvanPeevski/master
up 3d-chart demos
2 parents 9fd1d1c + 3f42721 commit da41d2f

File tree

618 files changed

+23038
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

618 files changed

+23038
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,127 @@
1+
{
2+
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3+
"version": 1,
4+
"newProjectRoot": "projects",
5+
"projects": {
6+
"demo": {
7+
"root": "",
8+
"sourceRoot": "src",
9+
"projectType": "application",
10+
"prefix": "app",
11+
"schematics": {},
12+
"architect": {
13+
"build": {
14+
"builder": "@angular-devkit/build-angular:browser",
15+
"options": {
16+
"outputPath": "dist/demo",
17+
"index": "src/index.html",
18+
"main": "src/main.ts",
19+
"polyfills": "src/polyfills.ts",
20+
"tsConfig": "src/tsconfig.app.json",
21+
"assets": [
22+
"src/assets"
23+
],
24+
"styles": [
25+
"./node_modules/@smart-webcomponents-angular/threedchart/styles/smart.base.css",
26+
"./node_modules/@smart-webcomponents-angular/threedchart/styles/smart.3dchart.css",
27+
"./node_modules/@smart-webcomponents-angular/threedchart/styles/smart.common.css",
28+
"src/assets/fonts.css",
29+
"src/assets/styles.css"
30+
],
31+
"scripts": [
32+
]
33+
},
34+
"configurations": {
35+
"production": {
36+
"fileReplacements": [
37+
{
38+
"replace": "src/environments/environment.ts",
39+
"with": "src/environments/environment.prod.ts"
40+
}
41+
],
42+
"optimization": false,
43+
"outputHashing": "all",
44+
"sourceMap": false,
45+
"extractCss": true,
46+
"namedChunks": false,
47+
"aot": true,
48+
"extractLicenses": true,
49+
"vendorChunk": false,
50+
"buildOptimizer": false
51+
}
52+
}
53+
},
54+
"serve": {
55+
"builder": "@angular-devkit/build-angular:dev-server",
56+
"options": {
57+
"browserTarget": "demo:build"
58+
},
59+
"configurations": {
60+
"production": {
61+
"browserTarget": "demo:build:production"
62+
}
63+
}
64+
},
65+
"extract-i18n": {
66+
"builder": "@angular-devkit/build-angular:extract-i18n",
67+
"options": {
68+
"browserTarget": "demo:build"
69+
}
70+
},
71+
"test": {
72+
"builder": "@angular-devkit/build-angular:karma",
73+
"options": {
74+
"main": "src/test.ts",
75+
"polyfills": "src/polyfills.ts",
76+
"tsConfig": "src/tsconfig.spec.json",
77+
"karmaConfig": "src/karma.conf.js",
78+
"styles": [
79+
"styles.css"
80+
],
81+
"scripts": [],
82+
"assets": [
83+
"src/favicon.ico",
84+
"src/assets"
85+
]
86+
}
87+
},
88+
"lint": {
89+
"builder": "@angular-devkit/build-angular:tslint",
90+
"options": {
91+
"tsConfig": [
92+
"src/tsconfig.app.json",
93+
"src/tsconfig.spec.json"
94+
],
95+
"exclude": [
96+
"**/node_modules/**"
97+
]
98+
}
99+
}
100+
}
101+
},
102+
"demo-e2e": {
103+
"root": "e2e/",
104+
"projectType": "application",
105+
"architect": {
106+
"e2e": {
107+
"builder": "@angular-devkit/build-angular:protractor",
108+
"options": {
109+
"protractorConfig": "e2e/protractor.conf.js",
110+
"devServerTarget": "demo:serve"
111+
}
112+
},
113+
"lint": {
114+
"builder": "@angular-devkit/build-angular:tslint",
115+
"options": {
116+
"tsConfig": "e2e/tsconfig.e2e.json",
117+
"exclude": [
118+
"**/node_modules/**"
119+
]
120+
}
121+
}
122+
}
123+
}
124+
},
125+
"defaultProject": "demo"
126+
}
127+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
{
2+
"name": "angular-3d-chart-100-stacked-area-series",
3+
"description": "Angular 3D chart 100-stacked-area-series example. This example demonstrates commercial components by jQWidgets(https://www.jqwidgets.com/license/)",
4+
"version": "1.0.1",
5+
"homepage": "https://www.htmlelements.com/",
6+
"dependencies": {
7+
"@angular/animations": "^11.2.3",
8+
"@angular/elements": "^11.2.3",
9+
"@angular/common": "^11.2.3",
10+
"@angular/compiler": "^11.2.3",
11+
"@angular/core": "^11.2.3",
12+
"@angular/forms": "^11.2.3",
13+
"@angular/platform-browser": "^11.2.3",
14+
"@angular/platform-browser-dynamic": "^11.2.3",
15+
"@angular/router": "^11.2.3",
16+
"@types/jasmine": "^3.6.6",
17+
"@types/jasminewd2": "^2.0.8",
18+
"@types/node": "^14.14.31",
19+
"core-js": "3.9.1",
20+
"moment": "^2.29.1",
21+
"@smart-webcomponents-angular/threedchart": "14.6.3",
22+
"rxjs": "^6.6.6",
23+
"zone.js": "^0.11.4"
24+
},
25+
"scripts": {
26+
"ng": "ng",
27+
"start": "ng serve",
28+
"build": "ng build",
29+
"test": "ng test",
30+
"lint": "ng lint",
31+
"e2e": "ng e2e"
32+
},
33+
"devDependencies": {
34+
"@angular-devkit/build-angular": "~0.901.1",
35+
"@angular/cli": "~11.2.3",
36+
"@angular/compiler-cli": "~11.2.3",
37+
"@angular/language-service": "~11.2.3",
38+
"@types/node": "^14.14.35",
39+
"codelyzer": "^5.1.2",
40+
"jasmine-core": "~3.5.0",
41+
"jasmine-spec-reporter": "~4.2.1",
42+
"karma": "~4.4.1",
43+
"karma-chrome-launcher": "~3.1.0",
44+
"karma-coverage-istanbul-reporter": "~2.1.0",
45+
"karma-jasmine": "~3.0.1",
46+
"karma-jasmine-html-reporter": "^1.4.2",
47+
"protractor": "~5.4.3",
48+
"ts-node": "~8.3.0",
49+
"tslint": "~6.1.0",
50+
"typescript": "~4.1.5"
51+
}
52+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
smart-3d-chart{
2+
width:80%;
3+
max-width: 1000px;
4+
height:600px;
5+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<smart-3d-chart #chart id="chart" [caption]="caption" [description]="description" [dataSource]="dataSource"
2+
[xAxis]="xAxis" [valueAxis]="valueAxis" [colorScheme]="colorScheme" [seriesGroups]="seriesGroups"
3+
[gridOptions]="gridOptions"></smart-3d-chart>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,202 @@
1+
import { Component, ViewChild, OnInit, AfterViewInit } from '@angular/core';
2+
import { ThreeDChartComponent } from 'smart-webcomponents-angular/threedchart';
3+
4+
5+
@Component({
6+
selector: 'app-root',
7+
templateUrl: './app.component.html',
8+
styleUrls: ['./app.component.css']
9+
})
10+
11+
export class AppComponent implements AfterViewInit, OnInit {
12+
@ViewChild('chart', { read: ThreeDChartComponent, static: false }) chart!: ThreeDChartComponent;
13+
14+
dataSource = [
15+
{
16+
Day: "Monday",
17+
Keith: {
18+
Running: 10,
19+
Swimming: 20,
20+
Cycling: 30,
21+
},
22+
Erica: {
23+
Running: 13,
24+
Swimming: 30,
25+
Cycling: 23,
26+
},
27+
George: {
28+
Running: 15,
29+
Swimming: 70,
30+
Cycling: 10,
31+
},
32+
},
33+
{
34+
Day: "Tuesday",
35+
Keith: {
36+
Running: 15,
37+
Swimming: 15,
38+
Cycling: 40,
39+
},
40+
Erica: {
41+
Running: 10,
42+
Swimming: 15,
43+
Cycling: 40,
44+
},
45+
George: {
46+
Running: 35,
47+
Swimming: 15,
48+
Cycling: 40,
49+
},
50+
},
51+
{
52+
Day: "Wednesday",
53+
Keith: {
54+
Running: 55,
55+
Swimming: 15,
56+
Cycling: 10,
57+
},
58+
Erica: {
59+
Running: 15,
60+
Swimming: 60,
61+
Cycling: 5,
62+
},
63+
George: {
64+
Running: 50,
65+
Swimming: 5,
66+
Cycling: 10,
67+
},
68+
},
69+
{
70+
Day: "Thursday",
71+
Keith: {
72+
Running: 15,
73+
Swimming: 15,
74+
Cycling: 40,
75+
},
76+
Erica: {
77+
Running: 15,
78+
Swimming: 15,
79+
Cycling: 40,
80+
},
81+
George: {
82+
Running: 15,
83+
Swimming: 15,
84+
Cycling: 5,
85+
},
86+
},
87+
{
88+
Day: "Friday",
89+
Keith: {
90+
Running: 15,
91+
Swimming: 15,
92+
Cycling: 40,
93+
},
94+
Erica: {
95+
Running: 15,
96+
Swimming: 15,
97+
Cycling: 40,
98+
},
99+
George: {
100+
Running: 5,
101+
Swimming: 5,
102+
Cycling: 40,
103+
},
104+
},
105+
];
106+
107+
caption = "Fitness & exercise weekly scorecard"
108+
109+
description = "Time spent in vigorous exercise by 3 people";
110+
111+
colorScheme = "scheme05";
112+
xAxis = {
113+
dataField: "Day",
114+
};
115+
valueAxis = {
116+
formatSettings: {
117+
sufix: " %",
118+
}
119+
};
120+
gridOptions = {
121+
slotWidthZ: 19,
122+
height: 30
123+
}
124+
seriesGroups = [
125+
{
126+
type: "stackedarea100",
127+
dataField: "Keith",
128+
displayText: "Keith",
129+
series: [
130+
{
131+
dataField: "Running",
132+
displayText: "Running",
133+
},
134+
{
135+
dataField: "Cycling",
136+
displayText: "Cycling",
137+
},
138+
{
139+
dataField: "Swimming",
140+
displayText: "Swimming",
141+
},
142+
],
143+
},
144+
{
145+
type: "stackedarea100",
146+
dataField: "Erica",
147+
displayText: "Erica",
148+
series: [
149+
{
150+
dataField: "Running",
151+
displayText: "Running",
152+
},
153+
{
154+
dataField: "Cycling",
155+
displayText: "Cycling",
156+
},
157+
{
158+
dataField: "Swimming",
159+
displayText: "Swimming",
160+
},
161+
],
162+
},
163+
{
164+
type: "stackedarea100",
165+
dataField: "George",
166+
displayText: "George",
167+
series: [
168+
{
169+
dataField: "Running",
170+
displayText: "Running",
171+
},
172+
{
173+
dataField: "Cycling",
174+
displayText: "Cycling",
175+
},
176+
{
177+
dataField: "Swimming",
178+
displayText: "Swimming",
179+
},
180+
],
181+
}
182+
]
183+
184+
cameraPosition = {
185+
x: 15,
186+
y: 30,
187+
z: 70,
188+
};
189+
190+
ngOnInit(): void {
191+
// onInit code.
192+
}
193+
194+
ngAfterViewInit(): void {
195+
// afterViewInit code.
196+
this.init();
197+
}
198+
199+
init(): void {
200+
// init code.
201+
}
202+
}

0 commit comments

Comments
 (0)