-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
81 additions
and
117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
module.exports = { | ||
presets: [ | ||
'@vue/app' | ||
'@vue/cli-plugin-babel/preset' | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"compilerOptions": { | ||
"target": "es5", | ||
"module": "esnext", | ||
"baseUrl": "./", | ||
"moduleResolution": "node", | ||
"paths": { | ||
"@/*": [ | ||
"src/*" | ||
] | ||
}, | ||
"lib": [ | ||
"esnext", | ||
"dom", | ||
"dom.iterable", | ||
"scripthost" | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,10 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<html lang=""> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>LCJS template</title> | ||
<title>LightningChart JS</title> | ||
</head> | ||
<body> | ||
<noscript> | ||
<strong>We're sorry but LCJS requires JavaScript to be enabled. Please enable it to continue.</strong> | ||
</noscript> | ||
<div id="app"></div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,31 @@ | ||
<template> | ||
<div id="app" style="height: 100vh"> | ||
<!-- Create Chart component and pass data points to the created chart --> | ||
<app-chart | ||
:points="points" | ||
></app-chart> | ||
</div> | ||
<div id="app" style="height: 100vh"> | ||
<ChartData :points="points"/> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import Chart from './components/Chart.vue' | ||
import ChartData from './components/Chart.vue' | ||
export default { | ||
name: 'app', | ||
data: () => { | ||
return { | ||
// Data points for the chart | ||
// points: [ | ||
// { x: 0, y: 0 }, | ||
// { x: 1, y: 7 }, | ||
// { x: 2, y: 3 }, | ||
// { x: 3, y: 10 } | ||
// ] | ||
points: [ | ||
{ x: 0, y: 0 }, | ||
{ x: 1, y: 7 }, | ||
{ x: 2, y: 3 }, | ||
{ x: 3, y: 10 }, | ||
{ x: 4, y: 12}, | ||
{ x: 5, y: 9 }, | ||
{ x: 6, y: 15 } | ||
] | ||
} | ||
}, | ||
}, | ||
components: { | ||
// Include Chart component to the app | ||
appChart: Chart | ||
ChartData | ||
} | ||
} | ||
</script> | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,4 @@ | ||
import { createApp } from 'vue' | ||
import App from './App.vue' | ||
|
||
|
||
|
||
|
||
createApp(App).mount('#app') | ||
createApp(App).mount('#app') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
const { defineConfig } = require('@vue/cli-service') | ||
module.exports = defineConfig({ | ||
transpileDependencies: true | ||
}) |