Permalink
Browse files

tweak examples and tests

  • Loading branch information...
1 parent d1ac92b commit aa7077c53eb3e3e780e27cb6b04abb79ce2453ac @100pah 100pah committed Jan 12, 2017
Showing with 7 additions and 3 deletions.
  1. +4 −0 test/dataZoom-scatter-toolbox.html
  2. +1 −1 test/heatmap-large.html
  3. +2 −2 test/ut/spec/api/containPixel.js
@@ -156,6 +156,10 @@
}
]
});
+
+ chart.on('dataZoom', function (params) {
+ console.log(chart.getOption().dataZoom);
+ });
// console.profileEnd('setOption');
})
@@ -39,7 +39,7 @@
noise.seed(Math.random());
function generateData(theta, min, max) {
var data = [];
- for (var i = 0; i <= 200; i++) {
+ for (var i = 0; i <= 100; i++) {
for (var j = 0; j <= 100; j++) {
// var x = (max - min) * i / 200 + min;
// var y = (max - min) * j / 100 + min;
@@ -85,7 +85,7 @@ describe('api/containPixel', function() {
};
- testCase.createChart()('geo', function () {
+ testCase.createChart(1, 200, 150)('geo', function () {
this.echarts.registerMap('test1', testGeoJson1);
this.echarts.registerMap('test2', testGeoJson2);
var chart = this.chart;
@@ -135,7 +135,7 @@ describe('api/containPixel', function() {
});
- testCase.createChart()('map', function () {
+ testCase.createChart(1, 200, 150)('map', function () {
this.echarts.registerMap('test1', testGeoJson1);
this.echarts.registerMap('test2', testGeoJson2);
var chart = this.chart;

0 comments on commit aa7077c

Please sign in to comment.