Skip to content

Commit

Permalink
chore: demo updates
Browse files Browse the repository at this point in the history
  • Loading branch information
farfromrefug committed Jan 9, 2024
1 parent e721ad3 commit 14e1e82
Show file tree
Hide file tree
Showing 18 changed files with 116 additions and 407 deletions.
7 changes: 7 additions & 0 deletions demo/App_Resources/iOS/Podfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings["IPHONEOS_DEPLOYMENT_TARGET"] = "11.0"
end
end
end
4 changes: 2 additions & 2 deletions demo/app/examples/BarChart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ export function onNavigatedTo(args) {
export function onChartLoaded(args) {
const chart = args.object as BarChart;

chart.drawFameRate = true;
chart.drawFrameRate = true;
// chart.setLogEnabled(true);
chart.setScaleEnabled(true);
chart.setDragEnabled(true);
chart.getAxisRight().setEnabled(false);
// chart.getAxisRight().setEnabled(false);
chart.setHighlightPerTapEnabled(true);
// chart.setHardwareAccelerationEnabled(true);

Expand Down
2 changes: 1 addition & 1 deletion demo/app/examples/BubbleChart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export function onNavigatedTo(args) {
export function onChartLoaded(args) {
const chart = args.object as BubbleChart;

chart.drawFameRate = true;
chart.drawFrameRate = true;
// chart.setLogEnabled(true);
chart.setScaleEnabled(true);
chart.setDragEnabled(true);
Expand Down
2 changes: 1 addition & 1 deletion demo/app/examples/CandleStickChart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export function onNavigatedTo(args) {
export function onChartLoaded(args) {
const chart = args.object as CandleStickChart;

chart.drawFameRate = true;
chart.drawFrameRate = true;
// chart.setLogEnabled(true);
chart.setScaleEnabled(true);
chart.setDragEnabled(true);
Expand Down
3 changes: 1 addition & 2 deletions demo/app/examples/HorizontalBarChart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,10 @@ export function onNavigatedTo(args) {
export function onChartLoaded(args) {
const chart = args.object as BarChart;

chart.drawFameRate = true;
chart.drawFrameRate = true;
// chart.setLogEnabled(true);
chart.setScaleEnabled(true);
chart.setDragEnabled(true);
chart.getAxisRight().setEnabled(false);
chart.setHighlightPerTapEnabled(true);
// chart.setHardwareAccelerationEnabled(true);

Expand Down
2 changes: 1 addition & 1 deletion demo/app/examples/LineChart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export function onNavigatedTo(args) {
export function onChartLoaded(args) {
const chart = args.object as LineChart;

chart.drawFameRate = true;
chart.drawFrameRate = true;
// chart.setLogEnabled(true);
chart.setScaleEnabled(true);
chart.setDragEnabled(true);
Expand Down
3 changes: 1 addition & 2 deletions demo/app/examples/PieChart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ export function onNavigatedTo(args) {
export function onChartLoaded(args) {
const chart = args.object as PieChart;

chart.drawFameRate = true;
chart.setLogEnabled(true);
chart.drawFrameRate = true;
chart.setHighlightPerTapEnabled(true);
//chart.setHoleRadius(10);
//chart.setDrawHoleEnabled(false);
Expand Down
3 changes: 1 addition & 2 deletions demo/app/examples/RadarChart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ export function onNavigatedTo(args) {
export function onChartLoaded(args) {
const chart = args.object as RadarChart;

chart.drawFameRate = true;
chart.setLogEnabled(true);
chart.drawFrameRate = true;
// chart.setDrawWeb(false);
// chart.setHardwareAccelerationEnabled(true);

Expand Down
2 changes: 1 addition & 1 deletion demo/app/examples/RealTime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export function onNavigatedTo(args) {
export function onChartLoaded(args) {
const chart = args.object as LineChart;

chart.drawFameRate = true;
chart.drawFrameRate = true;
chart.backgroundColor = 'white';

// enable touch gestures
Expand Down
2 changes: 1 addition & 1 deletion demo/app/examples/ScatterChart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export function onNavigatedTo(args) {

export function onChartLoaded(args) {
const chart = args.object as ScatterChart;
chart.drawFameRate = true;
chart.drawFrameRate = true;

chart.setDrawGridBackground(false);
chart.setTouchEnabled(true);
Expand Down
1 change: 0 additions & 1 deletion demo/nativescript.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { NativeScriptConfig } from '@nativescript/core';
export default {
id: 'com.akylas.nativescript.chartdemo',
appResourcesPath: 'App_Resources',
webpackConfigPath: 'app.webpack.config.js',
android: {
v8Flags: '--expose_gc',
markingMode: 'none',
Expand Down
28 changes: 15 additions & 13 deletions demo/package.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,23 @@
{
"name": "chartdemo",
"main": "app",
"version": "7.0.1",
"main": "app/app.ts",
"author": "Martin Guillon <[email protected]>",
"description": "A native application built with NativeScript-Core JS",
"license": "MIT",
"dependencies": {
"@nativescript/core": "~7.0.11",
"@nativescript/theme": "~3.0.0",
"@nativescript-community/ui-chart": "file:../plugin",
"nativescript-perms": "^2.0.11"
"@nativescript-community/gesturehandler": "2.0.23",
"@nativescript-community/ui-canvas": "4.6.12",
"@nativescript-community/ui-chart": "portal:../plugin",
"@nativescript/core": "~8.6.2",
"@nativescript/theme": "~3.0.2"
},
"devDependencies": {
"@nativescript/android": "7.0.0",
"@nativescript/ios": "7.0.0",
"@nativescript/types": "~7.0.4",
"@nativescript/webpack": "~3.0.5",
"typescript": "^3.9.7"
"@nativescript/android": "8.6.2",
"@nativescript/ios": "8.6.3",
"@nativescript/types": "~8.6.1",
"@nativescript/webpack": "~5.0.18",
"typescript": "^5.3.3"
},
"resolutions": {
"@nativescript-community/ui-canvas": "portal:/Volumes/dev/nativescript/ui-canvas/packages/ui-canvas"
}
}
}
42 changes: 18 additions & 24 deletions demo/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,21 @@
{
"compilerOptions": {
"module": "esnext",
"target": "es2017",
"moduleResolution": "node",
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"noEmitHelpers": true,
"noEmitOnError": true,
"skipLibCheck": true,
"lib": [
"es2017",
"dom",
"es6"
],
"baseUrl": ".",
"paths": {
"~/*": [
"app/*"
]
}
"module": "esnext",
"target": "ES2020",
"moduleResolution": "node",
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"noEmitHelpers": true,
"noEmitOnError": true,
"skipLibCheck": true,
"lib": ["ESNext", "dom"],
"baseUrl": ".",
"paths": {
"~/*": ["app/*"],
"@/*": ["app/*"]
}
},
"exclude": [
"node_modules",
"platforms"
]
}
"include": ["app/**/*"],
"files": ["./references.d.ts"],
"exclude": ["node_modules", "platforms"]
}
Loading

0 comments on commit 14e1e82

Please sign in to comment.