Latest commit c48bacd Jan 14, 2017 @100pah 100pah tweak example
Permalink
..
Failed to load latest commit information.
data fix pictorial chart Dec 29, 2016
lib tweak test lib Nov 23, 2016
ut tweak examples and tests Jan 12, 2017
-primary-cases.html enhance tooltip performance on mobile. Nov 19, 2016
README.md ui test with specific release Apr 22, 2016
allZero.html Update tests Aug 15, 2016
area.html Fix #3450 Jun 19, 2016
area2.html optimize data diff in line. Feb 26, 2016
areaLineUpdate.html fix commit [b094545] Sep 8, 2016
axes.html fix highlight Oct 31, 2016
axis-extrema.html tweak example Jan 11, 2017
axis.html Customizable of each axis label Nov 19, 2015
bar-large.html Add animationDelay May 9, 2016
bar.html [toolbox] Fix text position. Sep 22, 2016
bar2.html Update tests Dec 29, 2015
bar3.html commit test examples Oct 31, 2016
bmap.html fix bmap.html Feb 22, 2016
boxplot-multi.html update box plot example Feb 4, 2016
boxplot.html update example Feb 25, 2016
brush.html fix visualMap default color, and other tweak. Jun 30, 2016
brush2.html tweak default value. Jun 30, 2016
candlestick.html mouse event, fix componentType of marker and timeline May 5, 2016
candlestickConnect.html remove useless code Nov 23, 2016
chord.html Simple chord Dec 21, 2015
color-mix-aqi.html add layout param merge Jan 10, 2016
config.js fix build and config Jan 11, 2016
connect-manually.html enable customized update method. Dec 6, 2016
connect.html area select (solution I) Jun 12, 2016
connect2.html Update tests Dec 29, 2015
css-transform.html add example for css-tranfrom Oct 15, 2016
dataView.html DataView add optionToContent, contentToOption. #2872 Mar 28, 2016
dataZoom-axes.html fix data process order and consider axis min/max/scale. Feb 28, 2016
dataZoom-axis-type.html Fix #2710 (dataZoom location params merge error when using media query) Mar 4, 2016
dataZoom-cartesian-h.html tweak examples Nov 18, 2016
dataZoom-cartesian-v.html Pie legend Sep 28, 2015
dataZoom-dataShadow.html datazoom shadow and transform Oct 13, 2015
dataZoom-dataShadow0.html datazoom shadow and transform Oct 13, 2015
dataZoom-dataShadow1.html datazoom: add filterMode Nov 9, 2015
dataZoom-dataShadow2.html [dataZoom] Fix #4235 (data shadow when there are empty values) Oct 18, 2016
dataZoom-dynamic.html Fix #2667 (dataZoom displays wrong range when set data dynamically). Feb 26, 2016
dataZoom-geo.html Fix #3856 Aug 17, 2016
dataZoom-rainfall-connect.html Improve tooltip. Avoid tooltip not show when connected chart have NaN… Nov 16, 2016
dataZoom-rainfall-inside.html datazoom: startValue endValue priority fix, axisType support fix, fil… Feb 22, 2016
dataZoom-rainfall.html [dataZoom] Fix #4434 (Label should be updated while dragging in non-r… Nov 9, 2016
dataZoom-scatter-category.html tweak example May 19, 2016
dataZoom-scatter-hv-polar.html [dataZoom] 'silent' -> 'disabled' and public to doc. Nov 8, 2016
dataZoom-scatter-hv.html Update tests Dec 22, 2015
dataZoom-scatter-toolbox.html tweak examples and tests Jan 12, 2017
dataZoomHighPrecision.html Fix #3228 (dataZoom erroneously exclude min max value by accuracy pro… May 18, 2016
diff.html optimize data diff in line. Feb 26, 2016
dynamicData.html dataRange component renamed to visualMap component Dec 28, 2015
dynamicData2.html commit test examples Oct 31, 2016
dynamicData3.html [List] Fix animation weird effect when xAxis.data has empty value or … Nov 17, 2016
effectScatter.html Fix #3450 Jun 19, 2016
esl.js Got bar chart rendered ! Aug 19, 2015
force.html Update tests Dec 29, 2015
force2.html Update tests Aug 15, 2016
force3.html dataRange component renamed to visualMap component Dec 28, 2015
funnel.html geoLine => lines Jan 2, 2016
gauge.html Roam prevent default in mobile, several examples add viewport meta Nov 9, 2015
geo-map.html fix geo fill Dec 6, 2016
geoLine.html tweak example Nov 30, 2016
geoScatter.html Geo add regions property, can be selectable, has click event. #2362 May 19, 2016
getOption.html Fix #2710 (dataZoom location params merge error when using media query) Mar 4, 2016
graph-grid.html tweak example May 19, 2016
graph-simple.html Fix #3450 Jun 19, 2016
graph.html [graph] focusNodeAdjacency action. Dec 7, 2016
graphicOption.html tweak example Jan 11, 2017
heatmap-large.html tweak examples and tests Jan 12, 2017
heatmap-map.html dataRange component renamed to visualMap component Dec 28, 2015
heatmap.html dataRange component renamed to visualMap component Dec 28, 2015
ie8.html tweak Nov 30, 2016
largeLine.html Fix #3450 Jun 19, 2016
lazyUpdate.html Fix some bug when retrieving grid with id Jul 19, 2016
line-visual.html [visualMap] Enhance visual map on line/area. (enable piecewise/contin… Nov 14, 2016
line.html Fix #3450 Jun 19, 2016
lines-bus.html Update examples Jun 29, 2016
lines-symbol.html [lines] Fix #4060 (symbol should look forward to the direction that i… Sep 26, 2016
lines-track.html Lines support polyline draw to have better performance Jun 18, 2016
loading.html Update tests Dec 22, 2015
logScale.html Update tests Dec 29, 2015
map-contour.html map-contour test Mar 1, 2016
map-parallel.html enhance axis name truncate Jul 12, 2016
map.html Fix #3450 Jun 19, 2016
mapWorld.html fix example Feb 4, 2016
markArea.html Tweak markArea Jun 5, 2016
markLine.html Update examples Jun 29, 2016
markPoint.html Fix #3450 Jun 19, 2016
masterPainterColorChoice.html tweak Nov 1, 2016
media-dataZoom.html add test for dataZoom resize Mar 14, 2016
media-finance.html Fix timeline mediaquery setOption at second time bug (options should … May 12, 2016
media-pie.html fix media query Jan 11, 2016
mix.html Roam prevent default in mobile, several examples add viewport meta Nov 9, 2015
mobileBench.html Add mobile bench Oct 16, 2015
multipleGrid.html Update tests Dec 29, 2015
parallel-aqi.html enhance axis name truncate Jul 12, 2016
parallel-nutrients.html Fix dataZoom elements z Jun 16, 2016
pictorial-repeat.html [pictorailBar] tweak repeat layout Jan 6, 2017
pictorial-single.html tweak example Jan 13, 2017
pie-calculable.html commit test examples Oct 31, 2016
pie.html enhance pictorial chart and add examples. Dec 28, 2016
pie2.html Update tests Dec 29, 2015
pie3.html update example for tooltip formatter callback: param[0] => param Nov 24, 2015
pieDynamic.html Pie label Sep 29, 2015
polarLine.html maker on polar Oct 16, 2015
polarLine2.html Merge and fix Dec 25, 2015
polarScatter.html Improve polar Sep 6, 2015
punchCard.html Tooltip showTip action, tooltip connect Dec 22, 2015
radar.html tweak examples Oct 30, 2016
radar2.html Update examples Jun 29, 2016
radar3.html DataView add optionToContent, contentToOption. #2872 Mar 28, 2016
radar4.html DataView add optionToContent, contentToOption. #2872 Mar 28, 2016
reset.css tweak May 11, 2016
roseType.html Pie roseType Oct 23, 2015
sankey.html Fix #3450 Jun 19, 2016
scale-integer.html Geo add regions property, can be selectable, has click event. #2362 May 19, 2016
scatter-single-axis.html (1) singleAxis support data format: [11, 23, 44] Dec 3, 2016
scatter.html Fix #3450 Jun 19, 2016
scatterMatrix.html Tweak scatterMatrix example Jun 17, 2016
selectedMode.html Update tests Dec 29, 2015
showTip.html Tooltip showTip action, tooltip connect Dec 22, 2015
singleAxisScales.html tweak coord sys finder and datazoom Dec 8, 2016
symbol.html Symbol enhancement Nov 17, 2015
theme.html Fix dataZoom elements z Jun 16, 2016
themeRiver.html update the instance page Aug 18, 2016
themeRiver2.html Enhanced themeRiver data compatibility Nov 25, 2016
timeScale.html Update tests Dec 29, 2015
timeline-finance.html mouse event, fix componentType of marker and timeline May 5, 2016
timeline-layout.html [timeline] enable symbolSize array, symbolRotate, symbolOffset Oct 17, 2016
tooltip.html Tooltip in data item can be simply a string Jul 9, 2016
touch-slide.html update test Nov 24, 2016
touch-test.html add example for touch test (see #3233) May 20, 2016
touch-tooltip.html tweak example Nov 30, 2016
treemap-disk.html (I was originally planned to add dataType in click event, but finally… May 9, 2016
treemap-obama.html Update tests Dec 29, 2015
treemap-option.html add test May 16, 2016
treemap-option2.html tweak examples Oct 30, 2016
treemap-simple.html tweak Nov 10, 2016
treemap-visual.html [treemap] Enable visualMin, visualMax. see #2509. Nov 8, 2016
visualMap-categories.html [visualMap] fix symbol mapping problem. and enhance pieces defuault. Nov 10, 2016
visualMap-continuous.html fix visualMap default color, and other tweak. Jun 30, 2016
visualMap-layout.html add theme river entry and treak Jan 9, 2017
visualMap-opacity.html tweak May 11, 2016
visualMap-pieces.html [visualMap] Fix #4845 (support end text and label at the same time) Jan 8, 2017
visualMap-scatter-colorAndSymbol.html [visualMap] fix symbol mapping problem. and enhance pieces defuault. Nov 10, 2016
visualMap-scatter-symbolSize.html Update tests Dec 29, 2015
webkit-dep.html dataRange component renamed to visualMap component Dec 28, 2015
worldPopulationBubble.html dataRange component renamed to visualMap component Dec 28, 2015

README.md

Test Guide

Functional Test

Open ./*.html files in Web Browsers.

Unit Test

Rendering-relevant

Our test strategy is to compare the rendered canvas of current version with last release version. The comparison can either based on the content of rendered canvas, or the stack of canvas operations.

When a test case fails, it doesn't necessary to be a bug since the rendering method may be changed intentionally in a commit. So in this case, we output the rendering result of both versions and the diff result.

Make sure ../dist/echarts.js is the built based on current source files by:

cd ../build
npm install
bash build.sh

By default, we compare current version with last release version. To run the test, you should first download last release using:

cd ../test/ut
./configure

which will download echart.js of last release into ./ut/tmp/oldEcharts.js.

Then, open ./ut/ui.html in Web Browsers.

Compare current with a specific release

If one argument is passed, we take it as the hash code of a release and compare current version with /dist/echarts.js of the that version.

# this compares current `/dist/echarts.js` with that of v3.1.6
./configure 3724a16

Compare arbitrary two commits

Since /dist/echarts.js is only the build result of release versions, to compare arbitrary versions, you need to checkout specific commits and build the source files. Put the build results as ./tmp/oldEcharts.js and ./tmp/newEcharts.js will work.

Rendering-irrelevant

Open ./ut.html files in Web Browsers.