In [1]:
import os, sys
import pandas as pd
In [2]:
df = pd.read_csv(os.path.join('ezvis3d', 'api', 'ezvis3d_option.tsv'), sep='\t')
df.to_json(os.path.join('ezvis3d', 'api', 'ezvis3d_option.json'), orient='records')
df = pd.read_json(os.path.join('ezvis3d', 'api', 'ezvis3d_option.json'), orient='records')
df = df[['Name', 'Type', 'Default', 'Description']]
df
Out[2]:
Name
Type
Default
Description
0
animationInterval
number
1000
The animation interval in milliseconds. This d...
1
animationPreload
boolean
false
If false, the animation frames are loaded as s...
2
animationAutoStart
boolean
false
If true, the animation starts playing automati...
3
axisColor
string
'#4D4D4D'
The color of the axis lines and the text along...
4
backgroundColor
string or Object
{fill: 'white', stroke: 'gray', strokeWidth: 1}
The background color for the main area of the ...
5
backgroundColor.fill
string
'white'
The chart fill color, as an HTML color string.
6
backgroundColor.stroke
string
'gray'
The color of the chart border, as an HTML colo...
7
backgroundColor.strokeWidth
number
1
The border width, in pixels.
8
cameraPosition
Object
{horizontal: 1.0, vertical: 0.5, distance: 1.7}
Set the initial rotation and position of the c...
9
cameraPosition.horizontal
number
1.0
Parameter horizontal is a value in radians and...
10
cameraPosition.vertical
number
0.5
Parameter vertical is a value in radians betwe...
11
cameraPosition.distance
number
1.7
Parameter distance is the (normalized) distanc...
12
dataColor
string or object
{fill: '#7DC1FF', stroke: '#3267D2', strokeWid...
When dataColor is a string, it will set the co...
13
dataColor.fill
string
'#7DC1FF'
The border color of the dots or bars. Applicab...
14
dataColor.stroke
string
'#3267D2'
The fill color of the dots or bars. Applicable...
15
dataColor.strokeWidth
number
1
The line width of dots, bars and lines. Applic...
16
gridColor
string
'#D3D3D3'
The color of the grid lines.
17
height
string
'400px'
The height of the graph in pixels or as a perc...
18
keepAspectRatio
boolean
true
If keepAspectRatio is true, the x-axis and the...
19
showAnimationControls
boolean
true
If true, animation controls are created at the...
20
showGrid
boolean
true
If true, grid lines are draw in the x-y surfac...
21
showPerspective
boolean
true
If true, the graph is drawn in perspective: po...
22
showShadow
boolean
false
Show shadow on the graph.
23
style
string
'dot'
The style of the 3d graph. Available styles: b...
24
tooltip
boolean | function
false
Show a tooltip showing the values of the hover...
25
valueMax
number
none
The maximum value for the value-axis. Only ava...
26
valueMin
number
none
The minimum value for the value-axis. Only ava...
27
verticalRatio
number
0.5
A value between 0.1 and 1.0. This scales the v...
28
width
string
'400px'
The width of the graph in pixels or as a perce...
29
xBarWidth
number
none
The width of bars in x direction. By default, ...
30
xCenter
string
'55%'
The horizontal center position of the graph, a...
31
xMax
number
none
The maximum value for the x-axis.
32
xMin
number
none
The minimum value for the x-axis.
33
xStep
number
none
Step size for the grid on the x-axis.
34
xValueLabel
function
none
A function for custom formatting of the labels...
35
yBarWidth
number
none
The width of bars in y direction. By default, ...
36
yCenter
string
'45%'
The vertical center position of the graph, as ...
37
yMax
number
none
The maximum value for the y-axis.
38
yMin
number
none
The minimum value for the y-axis.
39
yStep
number
none
Step size for the grid on the y-axis.
40
yValueLabel
function
none
A function for custom formatting of the labels...
41
zMin
number
none
The minimum value for the z-axis.
42
zMax
number
none
The maximum value for the z-axis.
43
zStep
number
none
Step size for the grid on the z-axis.
44
zValueLabel
function
none
A function for custom formatting of the labels...
45
xLabel
String
x
Label on the X axis.
46
yLabel
String
y
Label on the Y axis.
47
zLabel
String
z
Label on the Z axis.
48
filterLabel
String
time
Label for the filter column.
49
legendLabel
String
value
Label for the style description.
In [3]:
df = pd.read_csv(os.path.join('ezvis3d', 'api', 'ezvis3d_method.tsv'), sep='\t')
df.to_json(os.path.join('ezvis3d', 'api', 'ezvis3d_method.json'), orient='records')
df = pd.read_json(os.path.join('ezvis3d', 'api', 'ezvis3d_method.json'), orient='records')
df = df[['Method', 'Return Type', 'Description']]
df
Out[3]:
Method
Return Type
Description
0
animationStart()
none
Start playing the animation. Only applicable w...
1
animationStop()
none
Stop playing the animation. Only applicable wh...
2
getCameraPosition()
An object with parameters horizontal, vertical...
Returns an object with parameters horizontal, ...
3
redraw()
none
Redraw the graph. Useful after the camera posi...
4
setData(data)
none
Replace the data in the Graph3d.
5
setOptions(options)
none
Update options of Graph3d. The provided option...
6
setSize(width, height)
none
Parameters width and height are strings, conta...
7
setCameraPosition (pos)
{horizontal: 1.0, vertical: 0.5, distance: 1.7}
Set the rotation and position of the camera. P...
In [4]:
df = pd.read_csv(os.path.join('ezvis3d', 'api', 'ezvis3d_dataset.tsv'), sep='\t')
df.to_json(os.path.join('ezvis3d', 'api', 'ezvis3d_dataset.json'), orient='records')
df = pd.read_json(os.path.join('ezvis3d', 'api', 'ezvis3d_dataset.json'), orient='records')
df = df[['Name', 'Type', 'Required', 'Description']]
df
Out[4]:
Name
Type
Required
Description
0
x
number
yes
Location on the x-axis.
1
y
number
yes
Location on the y-axis.
2
z
number
yes
Location on the z-axis.
3
style
number
no
The data value, required for graph styles dot-...
4
filter
*
no
Filter values used for the animation. This col...
In [ ]:
Content source: oscar6echo/ezvis3d
Similar notebooks: