Skip to content

Commit

Permalink
Merge branch 'release/v2.0.6'
Browse files Browse the repository at this point in the history
  • Loading branch information
BigFatDog committed Dec 8, 2018
2 parents 4443198 + 212734d commit 27d8b73
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 12 deletions.
28 changes: 24 additions & 4 deletions demo/scatter.html
Original file line number Diff line number Diff line change
Expand Up @@ -159,16 +159,36 @@
});

$('#a1').click(function(){
scatter.sort('exp_dat', 'asc');
options2.ordering = {
accessor: 'exp_dat',
direction: 'asc'
}
scatter.options(options2);
scatter.update();
})
$('#a2').click(function(){
scatter.sort('exp_dat', 'desc');
options2.ordering = {
accessor: 'exp_dat',
direction: 'desc'
}
scatter.options(options2);
scatter.update();
});
$('#a3').click(function(){
scatter.sort('exp_amo', 'asc');
options2.ordering = {
accessor: 'exp_amo',
direction: 'asc'
}
scatter.options(options2);
scatter.update();
});
$('#a4').click(function(){
scatter.sort('exp_amo', 'desc');
options2.ordering = {
accessor: 'exp_amo',
direction: 'desc'
}
scatter.options(options2);
scatter.update();
});

});
Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "vizart-basic",
"version": "2.0.5",
"version": "2.0.6",
"description": "VizArt Basic Charts: bar, row, rose, line, area, etc.",
"main": "dist/vizart-basic.js",
"module": "dist/vizart-basic.mjs",
"jsnext:main": "dist/vizart-basic.mjs",
"module": "dist/vizart-basic.esm.js",
"jsnext:main": "dist/vizart-basic.esm.js",
"style": "dist/vizart-basic.css",
"scripts": {
"_prebuild": "eslint src test",
Expand Down Expand Up @@ -42,7 +42,7 @@
"d3-timer": "^1.0.9",
"d3-transition": "^1.1.3",
"d3-voronoi": "^1.1.4",
"vizart-core": "^2.0.2"
"vizart-core": "^2.0.3"
},
"devDependencies": {
"babel-cli": "^6.26.0",
Expand Down
1 change: 1 addition & 0 deletions src/helper/builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ const build = builderConfig => (ChartOpt, animate, apis = []) => (id, opt) => {
const baseChart = canvasLayer(id, opt, compose(ChartOpt));

const chart = Object.assign(
{},
baseChart,
apiRender(baseChart, animate, hasAxis, stacked),
apiUpdateChart(baseChart, animate, hasAxis, stacked)
Expand Down

0 comments on commit 27d8b73

Please sign in to comment.