Skip to content

Commit 7ac1ddb

Browse files
author
Cindy Wang
committed
update ffapi-slate-test3.html plotly chart data x, y expression related to table column in sync with the change made by DM-11602.
1 parent aad9b7e commit 7ac1ddb

File tree

1 file changed

+17
-11
lines changed

1 file changed

+17
-11
lines changed

src/firefly/html/demo/ffapi-slate-test3.html

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -160,11 +160,12 @@
160160

161161
var dataBar = [
162162
{
163+
tbl_id: "wiseCatTbl",
163164
type: 'bar',
164165
name: 'w1nm',
165166
orientation: 'h',
166-
y: "tables::wiseCatTbl,clon",
167-
x: "tables::wiseCatTbl,w1nm"
167+
y: "tables::clon",
168+
x: "tables::w1nm"
168169
}
169170
];
170171

@@ -183,10 +184,11 @@
183184

184185
var dataPie = [
185186
{
187+
tbl_id: "wiseCatTbl",
186188
name: 'Area',
187189
type: 'pie',
188-
values: "tables::wiseCatTbl,w1mpro",
189-
labels: "tables::wiseCatTbl,clon",
190+
values: "tables::w1mpro",
191+
labels: "tables::clon",
190192
textinfo: 'none'
191193
}];
192194

@@ -204,10 +206,11 @@
204206

205207
var dataContour = [
206208
{
209+
tbl_id: "wiseCatTbl",
207210
name: 'contour',
208211
type: 'histogram2dcontour',
209-
x: "tables::wiseCatTbl,ra",
210-
y: "tables::wiseCatTbl,dec",
212+
x: "tables::ra",
213+
y: "tables::dec",
211214
ncontours: 20
212215
}];
213216

@@ -229,9 +232,10 @@
229232
{
230233
type: 'surface',
231234
name: 'w1-ra-dec',
232-
x: "tables::wiseCatTbl,ra",
233-
y: "tables::wiseCatTbl,dec",
234-
z: "tables::wiseCatTbl,w1mpro",
235+
tbl_id: "wiseCatTbl",
236+
x: "tables::ra",
237+
y: "tables::dec",
238+
z: "tables::w1mpro",
235239
hoverinfo: 'x+y+z'
236240
}
237241
];
@@ -264,12 +268,14 @@
264268
{
265269
type: 'box',
266270
name: 'w1mpro',
267-
y: "tables::wiseCatTbl,w1mpro"
271+
tbl_id: "wiseCatTbl",
272+
y: "tables::w1mpro"
268273
},
269274
{
270275
type: 'box',
271276
name: 'w2mpro',
272-
y: "tables::wiseCatTbl,w2mpro"
277+
tbl_id: "wiseCatTbl",
278+
y: "tables::w2mpro"
273279
}
274280
];
275281

0 commit comments

Comments
 (0)