Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 818 Bytes

dot.rst

File metadata and controls

29 lines (20 loc) · 818 Bytes

Dot

Basic

Punch card like chart:

dot_chart = pygal.Dot(x_label_rotation=30) dot_chart.title = 'V8 benchmark results' dot_chart.x_labels = ['Richards', 'DeltaBlue', 'Crypto', 'RayTrace', 'EarleyBoyer', 'RegExp', 'Splay', 'NavierStokes'] dot_chart.add('Chrome', [6395, 8212, 7520, 7218, 12464, 1660, 2123, 8607]) dot_chart.add('Firefox', [7473, 8099, 11700, 2651, 6361, 1044, 3797, 9450]) dot_chart.add('Opera', [3472, 2933, 4203, 5229, 5810, 1828, 9013, 4669]) dot_chart.add('IE', [43, 41, 59, 79, 144, 136, 34, 102])

Negative

Negative values are also supported, drawing the dot empty:

600 300

dot_chart = pygal.Dot(x_label_rotation=30) dot_chart.add('Normal', [10, 50, 76, 80, 25]) dot_chart.add('With negatives', [0, -34, -29, 39, -75])