Compare commits

...
2 Commits
Author SHA1 Message Date
saherelm 65ed78abac last ... 2026-08-29 00:57:47 +03:30
saherelm 13e7a02b37 last woks fo x-chart component testing ... 2026-08-28 21:01:54 +03:30
5 changed files with 31 additions and 7 deletions
+2 -2
View File
@@ -18,7 +18,7 @@
"prefix": "app", "prefix": "app",
"architect": { "architect": {
"build": { "build": {
"builder": "@angular-devkit/build-angular:browser", "builder": "@angular-builders/custom-webpack:browser",
"options": { "options": {
"outputPath": "www", "outputPath": "www",
"index": "src/index.html", "index": "src/index.html",
@@ -149,4 +149,4 @@
"styleext": "scss" "styleext": "scss"
} }
} }
} }
+2
View File
@@ -58,6 +58,7 @@
"zone.js": "~0.11.4" "zone.js": "~0.11.4"
}, },
"devDependencies": { "devDependencies": {
"@angular-builders/custom-webpack": "^12.1.1",
"@angular-devkit/build-angular": "~12.1.3", "@angular-devkit/build-angular": "~12.1.3",
"@angular/cdk": "^12.1.3", "@angular/cdk": "^12.1.3",
"@angular/cli": "~12.1.3", "@angular/cli": "~12.1.3",
@@ -106,6 +107,7 @@
"ng-packagr": "^12.1.2", "ng-packagr": "^12.1.2",
"ngx-device-detector": "^2.1.1", "ngx-device-detector": "^2.1.1",
"ngx-markdown": "^12.0.1", "ngx-markdown": "^12.0.1",
"node-polyfill-webpack-plugin": "^1.1.4",
"ol": "^6.6.1", "ol": "^6.6.1",
"shx": "^0.3.3", "shx": "^0.3.3",
"typescript": "~4.3.5", "typescript": "~4.3.5",
+14
View File
@@ -0,0 +1,14 @@
const NodePolyfillPlugin = require("node-polyfill-webpack-plugin")
module.exports = {
plugins: [
new NodePolyfillPlugin({
excludeAliases: ["console"]
})
],
resolve: {
fallback: {
fs: false,
}
}
};
@@ -27,12 +27,16 @@
class="v-card" class="v-card"
[type]="'line'" [type]="'line'"
[isInPage]="true" [isInPage]="true"
[title]="chartTitle"
[cardTitle]="'Chart'" [cardTitle]="'Chart'"
[wrapWithCard]="true" [wrapWithCard]="true"
[showActionBar]="true" [showActionBar]="true"
[series]="chartSeries" [series]="chartSeries"
[subTitleAlign]="'start'"
[subTitle]="'Sub Title'"
[options]="chartOptions" [options]="chartOptions"
(chartRendered)="onChartReady()" (chartRendered)="onChartReady()"
[gridColor]="ColorNames.LightShade"
[availableActionBarItems]="availableActionBarItems" [availableActionBarItems]="availableActionBarItems"
(actionBarActionFired)="handleActionBarActionFired($event)" (actionBarActionFired)="handleActionBarActionFired($event)"
> >
+9 -5
View File
@@ -1,9 +1,9 @@
import { import {
XChartOptions, XChartOptions,
XChartSeriesType, XChartSeriesType,
XChartAvailableActionBarItem,
XChartActionBarItem, XChartActionBarItem,
XActionBarActionFiredModel, XActionBarActionFiredModel,
XChartAvailableActionBarItem,
} from 'x-framework-components'; } from 'x-framework-components';
import { Component } from '@angular/core'; import { Component } from '@angular/core';
import { isNullOrEmptyString } from 'x-framework-core'; import { isNullOrEmptyString } from 'x-framework-core';
@@ -112,6 +112,9 @@ export class ChartPage extends VPageComponent {
}, },
]; ];
//
chartTitle = 'نمودار فروش ماهانه';
// //
chartOptions: XChartOptions = { chartOptions: XChartOptions = {
chart: { chart: {
@@ -227,7 +230,7 @@ export class ChartPage extends VPageComponent {
show: false, show: false,
}, },
}, },
colors: ['#77B6EA', '#545454'], // colors: ['#77B6EA', '#545454'],
dataLabels: { dataLabels: {
enabled: true, enabled: true,
}, },
@@ -238,9 +241,6 @@ export class ChartPage extends VPageComponent {
text: 'Average High & Low Temperature', text: 'Average High & Low Temperature',
align: 'left', align: 'left',
}, },
grid: {
borderColor: '#e7e7e7',
},
markers: { markers: {
size: 1, size: 1,
}, },
@@ -327,6 +327,10 @@ export class ChartPage extends VPageComponent {
//#endregion //#endregion
//
//#region LifeCycles ...
//#endregion
// //
//#region UI Providers ... //#region UI Providers ...
/** /**