Simple vertical line chart
The vLine Chart is basicly a table with columns, rows and markers
vline = new VLine()
vline.setupFont('Courier', 16, 20)
- The first parameter is the font family
- The second parameter is the font size
- The third parameter is the font margin (It is 20 by default)
vline.setupVLineHeader('Leadership Attributes', [
'Low',
'Medium',
'High'
])
- The first parameter is the title of your chart
- The second parameter is an array of strings which are the columns of your chart
vline.addElement('Business management', 2)
vline.addElement('Entrepreneurial mindset', 3)
vline.addElement('Ambition and resilience', 2)
vline.addElement('Relationship building', 2)
vline.addElement('Project management', 1)
vline.addElement('Taking orders', 1)
- The first parameter is the description of your item
- The second parameter is the index that your row is scored
vline.buildCanvas()