Category talk:Wren-math: Difference between revisions

Content added Content deleted
(→‎Source code: Nums.barChart method tweaked to deal better with zero data.)
m (→‎Source code: Change to comment.)
Line 936: Line 936:
// 'width' is the total width of the chart in characters to which the labels/data will
// 'width' is the total width of the chart in characters to which the labels/data will
// automatically be scaled. 'symbol' is the character to be used to draw each bar,
// automatically be scaled. 'symbol' is the character to be used to draw each bar,
// 'symbol2' is used to represent non-zero data and 'symbol3' zero data which would
// 'symbol2' is used to represent scaled non-zero data and 'symbol3' zero data which
// otherwise be blank. The actual data is printed at the end of each bar.
// would otherwise be blank. The actual data is printed at the end of each bar.
static barChart (title, width, labels, data, symbol, symbol2, symbol3) {
static barChart (title, width, labels, data, symbol, symbol2, symbol3) {
var barCount = labels.count
var barCount = labels.count