Skip to main content

3D Box Chart

Class for visualization of large sets of individually configurable 3D Boxes.

3D Box Chart3D Box Chart
import lightningchart as lc
import random

lc.set_license('my-license-key')

data = []
resolution = 16
height = 10
for x in range(0, resolution):
for z in range(0, resolution):
height += (random.random() * 2) - 1
data.append({
'xCenter': x,
'yCenter': 0 + height / 2,
'zCenter': z,
'xSize': 1,
'ySize': height,
'zSize': 1
})

chart = lc.Box3D(
data=data,
box_color=lc.Color(0, 255, 255),
theme=lc.Themes.White,
title='3D Bars',
xlabel='x',
ylabel='y'
)
chart.open()