-
Notifications
You must be signed in to change notification settings - Fork 6
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
1 parent
0857bd5
commit 52a48a8
Showing
11 changed files
with
36 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<!DOCTYPE html><html><head><meta charset=utf-8><meta name=description content="Vue component to draw bar charts using d3 "><title>vue-d3-barchart</title><link href="https://fonts.googleapis.com/css?family=Asap" rel=stylesheet><link href="https://fonts.googleapis.com/css?family=Belgrano" rel=stylesheet><link href=/vue-d3-barchart/css/app.c5195807.css rel=preload as=style><link href=/vue-d3-barchart/js/app.bf3e13d0.js rel=preload as=script><link href=/vue-d3-barchart/js/chunk-vendors.f317d73f.js rel=preload as=script><link href=/vue-d3-barchart/css/app.c5195807.css rel=stylesheet></head><body><div id=app></div><script src=/vue-d3-barchart/js/chunk-vendors.f317d73f.js></script><script src=/vue-d3-barchart/js/app.bf3e13d0.js></script></body></html> | ||
<!DOCTYPE html><html><head><meta charset=utf-8><meta name=description content="Vue component to draw bar charts using d3 "><title>vue-d3-barchart</title><link href="https://fonts.googleapis.com/css?family=Asap" rel=stylesheet><link href="https://fonts.googleapis.com/css?family=Belgrano" rel=stylesheet><link href=/vue-d3-barchart/css/app.c5195807.css rel=preload as=style><link href=/vue-d3-barchart/js/app.3c0fed29.js rel=preload as=script><link href=/vue-d3-barchart/js/chunk-vendors.95bfe8ac.js rel=preload as=script><link href=/vue-d3-barchart/css/app.c5195807.css rel=stylesheet></head><body><div id=app></div><script src=/vue-d3-barchart/js/chunk-vendors.95bfe8ac.js></script><script src=/vue-d3-barchart/js/app.3c0fed29.js></script></body></html> |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
example/js/chunk-vendors.f317d73f.js → example/js/chunk-vendors.95bfe8ac.js
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { createExampleData, randomValue } from './lib' | ||
import colors from '../../colors.json' | ||
const title = 'Bars' | ||
const chartData = [2, 7, 10, 11, 12, 14, 15, 21, 30, 31, 39, 50].map(x => { | ||
let y = randomValue(1, 30) | ||
return { x, y } | ||
}) | ||
const options = { | ||
marks: false, | ||
axis: { | ||
valuesY: true, | ||
linesY: true, | ||
linesX: true, | ||
valuesX: true | ||
}, | ||
margin: 0, | ||
domain: { | ||
min: 0 | ||
}, | ||
getX: (d) => d.x, | ||
getY: (d) => d.y, | ||
colors: [ | ||
colors.red, colors.blue | ||
] | ||
} | ||
export default createExampleData({ title, options, chartData }) |
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