Skip to content

Commit 79c4388

Browse files
committed
test-mock pass
1 parent a64af96 commit 79c4388

File tree

3 files changed

+58
-36
lines changed

3 files changed

+58
-36
lines changed

test/image/mocks/tooltip_histogram_horizontal.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
22
"data": [{
33
"name":"H1",
4-
"y":[15.23921160702866,15.03624024253109,17.197213230383564,7.467288036989801,9.73118879555351,10.412133555738741,13.771539114987359,19.06527554952006,6.893448656421133,11.049577750887122,13.256892510523139,5.75315036856648,9.316709825863082,1.6269833164006098,18.641703507992695,11.751584767477825,16.317694590114698,16.462629247884376,18.481165427641738,6.066337228231702,15.30176001093007,14.242703415677054,5.252479334458437,5.537966466622146,10.332773687712724,14.74723097563124,15.945896551123065,0.7829495766325634,9.101356872626877,12.5992538760891,18.506589677349435,17.88311772298359,13.239650604461104,14.893573026174689,13.290944291798736,1.2002263131283186,9.095191132532289,1.0828712108895555,18.71571427987662,18.353955013977508,10.000145823485894,17.77534914439723,13.450935215307755,1.5633741222188102,11.023184693914668,1.1310347587465541,14.240214475316593,5.403764243212052,13.429120962894281,8.264091281946154,8.381692805334096,4.342360376842025,1.4326282407154456,0.6602555085308648,5.22207774108959,9.04441085507353,19.43525005320762,12.72165912107182,3.5073982130798442,2.1812404046032974,4.911810050113036,11.171412334479356,16.76936352413933,4.587344341274601,19.990084680470815,18.766364300875814,14.441083351837289,2.213347387568916,15.187481980048705,19.03820481209533,15.634336487448873,19.560340966478936,2.221945048102185,8.082876333318605,12.491339168223469,8.2620860149176,3.267562602664027,15.613002546991675,1.809684402449574,9.384835169858231,0.784701354499362,7.736720378466413,19.110503994209395,18.18815635436725,15.441766892507427,13.325460022521323,4.350130599007782,11.826798147970157,8.451710593669393,17.80921376484458,17.668898753220198,6.903996269297961,9.86587737515345,5.162452452761177,17.65180653562772,2.5023093246149486,4.186956795808792,13.576474411009098,10.300076652914514,14.713166745686575],"type":"histogram",
5-
"tooltiptemplate":"%{fullData.name}<br>y: %{y}<br>Count: %{x}"},
4+
"y":[15.23921160702866,15.03624024253109,17.197213230383564,7.467288036989801,9.73118879555351,10.412133555738741,13.771539114987359,19.06527554952006,6.893448656421133,11.049577750887122,13.256892510523139,5.75315036856648,9.316709825863082,1.6269833164006098,18.641703507992695,11.751584767477825,16.317694590114698,16.462629247884376,18.481165427641738,6.066337228231702,15.30176001093007,14.242703415677054,5.252479334458437,5.537966466622146,10.332773687712724,14.74723097563124,15.945896551123065,0.7829495766325634,9.101356872626877,12.5992538760891,18.506589677349435,17.88311772298359,13.239650604461104,14.893573026174689,13.290944291798736,1.2002263131283186,9.095191132532289,1.0828712108895555,18.71571427987662,18.353955013977508,10.000145823485894,17.77534914439723,13.450935215307755,1.5633741222188102,11.023184693914668,1.1310347587465541,14.240214475316593,5.403764243212052,13.429120962894281,8.264091281946154,8.381692805334096,4.342360376842025,1.4326282407154456,0.6602555085308648,5.22207774108959,9.04441085507353,19.43525005320762,12.72165912107182,3.5073982130798442,2.1812404046032974,4.911810050113036,11.171412334479356,16.76936352413933,4.587344341274601,19.990084680470815,18.766364300875814,14.441083351837289,2.213347387568916,15.187481980048705,19.03820481209533,15.634336487448873,19.560340966478936,2.221945048102185,8.082876333318605,12.491339168223469,8.2620860149176,3.267562602664027,15.613002546991675,1.809684402449574,9.384835169858231,0.784701354499362,7.736720378466413,19.110503994209395,18.18815635436725,15.441766892507427,13.325460022521323,4.350130599007782,11.826798147970157,8.451710593669393,17.80921376484458,17.668898753220198,6.903996269297961,9.86587737515345,5.162452452761177,17.65180653562772,2.5023093246149486,4.186956795808792,13.576474411009098,10.300076652914514,14.713166745686575],"type":"histogram"
5+
},
66
{"name":"H2",
77
"y":[9.93930814479408,6.947631964344634,17.062657909316307,3.73745305647627,15.543332253916876,3.1717875672865214,1.3969395969400167,15.608368228140527,17.972102731028897,4.877437062932676,11.950697341929747,14.702979150022193,17.98722627222531,9.415151324090367,2.379402843949645,9.089357239971005,3.906445818222959,9.803104299504337,2.317716581150142,12.977275997656292,13.893794949388585,2.222428675530259,8.134836005844193,19.179300974916124,1.3425381870022757,19.649105422231806,9.893775272091752,7.371183440448359,0.27498466058639925,3.853254647701112,2.2831144402916514,1.222410379215635,11.947313843023302,11.725935566611039,12.234343111660277,18.676696610837254,15.454687173696737,0.26488259169332284,12.177910392641264,5.530213776191529,19.308693706427256,16.741687983862395,0.060315868468214795,5.285004836361562,8.832697108525254,12.275305474270251,14.959162079353053,6.868602059440054,18.973035635072225,2.039133745285364,1.4505708229303438,3.069641847044282,11.517687737749307,10.627295696440092,11.541368584461926,3.3607961789277074,18.512014444966994,15.650505737453138,14.615832288776687,1.361979674930609,14.079978058649953,6.340703907023045,18.294478020790464,12.301252209774836,8.692325117952702,18.850035958133404,17.913326644123476,1.5447007535622492,10.011912383417524,19.34533193110649,18.34520495610937,7.784744458265072,16.36577042855992,18.694860395751075,15.0677456305028,11.037614113035337,7.567991150976702,13.67595565969121,14.983411976986885,12.574852617001051,7.999559224808497,4.809315125646185,10.26138678181902,4.645200208941967,2.9927516792900843,6.255038768512384,2.4272073816674533,12.859923027804392,19.112860962334402,13.00012061300225,13.156848215858972,11.794865433749424,1.0931884007895198,7.298685335549413,15.288012059956333,18.18117897572211,3.195928865142803,8.286669053735697,9.727089201212294,2.3263730235563873],
8-
"type":"histogram",
9-
"tooltiptemplate":"%{fullData.name}<br>y: %{y}<br>Count: %{x}"},
8+
"type":"histogram"
9+
},
1010
{"name":"H3",
11-
"y":[8.424847346078977,17.769072475845338,7.404715350280213,1.140877389941386,9.438453569956607,11.182233136392437,9.545039196399177,9.14597545430418,10.488737669653476,19.16470146724785,2.409862031362404,10.129222991006632,0.7716117210389695,11.782743219231893,3.804822597114792,15.303807958215554,16.821666392002538,19.244097661018962,16.921367819419682,6.664076239755465,10.669268449481027,1.5764306149059348,1.4780159947925942,3.5192161527392707,0.19113234471882512,12.084188168832426,15.261335985626443,5.934792395469755,2.1976755919672497,3.2213231440892987,3.9529742691982306,15.09743133471514,19.363879386687223,12.131947595591509,14.202769090916158,19.824831980780683,3.082381009141948,14.116081633148713,16.47901142501033,7.510953351893281,18.910455180283,5.834796703989092,0.022478918711370532,11.58065158386449,15.846224695275783,19.745393645005844,16.069135935179823,19.226963772917955,4.978611871564493,3.50657141755909,18.130906598003932,5.256984870183883,9.078685336477747,19.20192771761044,17.490811185485256,3.8895480322011178,4.819236830946778,17.22244071088553,3.378124836925054,10.145299297006803,1.7018508220566497,10.27783823401175,10.269951697176634,3.250872850842401,13.341488434398743,9.444781580461308,17.125993928951463,17.28747991548027,11.255649620975356,2.057505420204757,18.1702342467505,15.808877858798205,5.220621339893723,9.841506215340367,18.57975812198436,5.9255025186409505,19.87374605757019,16.617764729821364,2.217621216290948,9.745573270895768,12.549014911867943,18.812301299687043,14.332163481167981,15.961659751233352,2.8520219827170767,3.765096216495225,14.215534095320127,16.609619105562565,11.722974958077376,14.130186032209089,3.864782625533729,0.48025081170719686,12.627827226620479,8.147584101012235,17.737369254682918,19.963573895192425,4.902593225542393,19.253275747935813,2.1261282846532703,14.734260396715054],"type":"histogram",
12-
"tooltiptemplate":"%{fullData.name}<br>y: %{y}<br>Count: %{x}"}
11+
"y":[8.424847346078977,17.769072475845338,7.404715350280213,1.140877389941386,9.438453569956607,11.182233136392437,9.545039196399177,9.14597545430418,10.488737669653476,19.16470146724785,2.409862031362404,10.129222991006632,0.7716117210389695,11.782743219231893,3.804822597114792,15.303807958215554,16.821666392002538,19.244097661018962,16.921367819419682,6.664076239755465,10.669268449481027,1.5764306149059348,1.4780159947925942,3.5192161527392707,0.19113234471882512,12.084188168832426,15.261335985626443,5.934792395469755,2.1976755919672497,3.2213231440892987,3.9529742691982306,15.09743133471514,19.363879386687223,12.131947595591509,14.202769090916158,19.824831980780683,3.082381009141948,14.116081633148713,16.47901142501033,7.510953351893281,18.910455180283,5.834796703989092,0.022478918711370532,11.58065158386449,15.846224695275783,19.745393645005844,16.069135935179823,19.226963772917955,4.978611871564493,3.50657141755909,18.130906598003932,5.256984870183883,9.078685336477747,19.20192771761044,17.490811185485256,3.8895480322011178,4.819236830946778,17.22244071088553,3.378124836925054,10.145299297006803,1.7018508220566497,10.27783823401175,10.269951697176634,3.250872850842401,13.341488434398743,9.444781580461308,17.125993928951463,17.28747991548027,11.255649620975356,2.057505420204757,18.1702342467505,15.808877858798205,5.220621339893723,9.841506215340367,18.57975812198436,5.9255025186409505,19.87374605757019,16.617764729821364,2.217621216290948,9.745573270895768,12.549014911867943,18.812301299687043,14.332163481167981,15.961659751233352,2.8520219827170767,3.765096216495225,14.215534095320127,16.609619105562565,11.722974958077376,14.130186032209089,3.864782625533729,0.48025081170719686,12.627827226620479,8.147584101012235,17.737369254682918,19.963573895192425,4.902593225542393,19.253275747935813,2.1261282846532703,14.734260396715054],"type":"histogram"
12+
}
1313
],
1414
"config": {
1515
"editable": true,

test/image/mocks/tooltip_histogram_subplots.json

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"x": [15.2, 15.0, 17.2, 7.5, 9.7, 10.4, 13.8, 19.1, 6.9, 11.0, 13.3, 5.8, 9.3, 1.6, 18.6, 11.8, 16.3, 16.5, 18.5, 6.1],
55
"name": "H1",
66
"type": "histogram",
7-
"xaxis": "x1",
8-
"yaxis": "y1"
7+
"xaxis": "x",
8+
"yaxis": "y"
99
},
1010
{
1111
"x": [9.9, 6.9, 17.1, 3.7, 15.5, 3.2, 1.4, 15.6, 18.0, 4.9, 12.0, 14.7, 18.0, 9.4, 2.4, 9.1, 3.9, 9.8, 2.3, 13.0],
@@ -29,23 +29,35 @@
2929
"pattern": "independent",
3030
"ygap": 0.35
3131
},
32-
"xaxis1": {
33-
"title": "X1 Axis"
32+
"xaxis": {
33+
"title": {
34+
"text": "X1 Axis"
35+
}
3436
},
35-
"yaxis1": {
36-
"title": "Y1 Axis"
37+
"yaxis": {
38+
"title": {
39+
"text": "Y1 Axis"
40+
}
3741
},
3842
"xaxis2": {
39-
"title": "X2 Axis"
43+
"title": {
44+
"text": "X2 Axis"
45+
}
4046
},
4147
"yaxis2": {
42-
"title": "Y2 Axis"
48+
"title": {
49+
"text": "Y2 Axis"
50+
}
4351
},
4452
"xaxis3": {
45-
"title": "X3 Axis"
53+
"title": {
54+
"text": "X3 Axis"
55+
}
4656
},
4757
"yaxis3": {
48-
"title": "Y3 Axis"
58+
"title": {
59+
"text": "Y3 Axis"
60+
}
4961
}
5062
},
5163
"config": {

test/image/mocks/tooltip_log_scatter.json

Lines changed: 30 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@
55
"x": [1, 10, 100, 1000, 10000],
66
"y": [5, 10, 15, 20, 25],
77
"type": "scatter",
8-
"xaxis": "x1",
9-
"yaxis": "y1"
8+
"xaxis": "x",
9+
"yaxis": "y"
1010
},
1111
{
1212
"name": "Left Trace 2",
1313
"x": [1, 10, 100, 1000, 10000],
1414
"y": [25, 20, 15, 10, 5],
1515
"type": "scatter",
16-
"xaxis": "x1",
17-
"yaxis": "y1"
16+
"xaxis": "x",
17+
"yaxis": "y"
1818
},
1919
{
2020
"name": "Right Trace 1",
@@ -34,30 +34,40 @@
3434
}
3535
],
3636
"layout": {
37-
"xaxis1": {
38-
"domain": [0, 0.45],
39-
"type": "log",
40-
"title": "Log X-Axis"
37+
"xaxis": {
38+
"domain": [0, 0.45],
39+
"type": "log",
40+
"title": {
41+
"text": "Log X-Axis"
42+
}
4143
},
42-
"yaxis1": {
43-
"domain": [0, 1],
44-
"title": "Linear Y-Axis"
44+
"yaxis": {
45+
"domain": [0, 1],
46+
"title": {
47+
"text": "Linear Y-Axis"
48+
}
4549
},
4650
"xaxis2": {
47-
"domain": [0.55, 1],
48-
"title": "Linear X-Axis"
51+
"domain": [0.55, 1],
52+
"title": {
53+
"text": "Linear X-Axis"
54+
}
4955
},
5056
"yaxis2": {
51-
"domain": [0, 1],
52-
"type": "log",
53-
"title": "Log Y-Axis"
57+
"domain": [0, 1],
58+
"type": "log",
59+
"title": {
60+
"text": "Log Y-Axis"
61+
}
5462
},
5563
"grid": {
56-
"rows": 1,
57-
"columns": 2,
58-
"pattern": "independent"
64+
"rows": 1,
65+
"columns": 2,
66+
"pattern": "independent"
5967
},
60-
"title": "Dual Subplots with Log Scales"
68+
"title": {
69+
"text": "Dual Subplots with Log Scales"
70+
}
6171
},
6272
"config": {
6373
"editable": true,

0 commit comments

Comments
 (0)