// [168] private Sub BuildTypes() As String
this.buildtypes = function () {
if (self == null) self = this;
var _sbx;
var _stot;
var _scnt;
var _seriesm;
var _sname;
var _stype;
// [169] Dim sbx As StringBuilder
_sbx = new StringBuilder();
// [170] sbx.Initialize
// BANano: Not Transpiled;
// [171] sbx.Append( {35} )
_sbx.append("types: {");
// [172] sbx.Append(CRLF)
_sbx.append("\n");
// [173] Dim sTot As Int = series.Size - 1
_stot = Object.keys(self._series).length - 1;
// [174] Dim sCnt As Int
_scnt = 0;
// [175] For sCnt = 0 To sTot
for (_scnt = 0; _scnt <= _stot; _scnt++) {
// [176] Dim seriesm As Map = series.GetValueAt(sCnt)
_seriesm = banano_getB4JValueAt(self._series, _scnt);
// [177] Dim sname As String = seriesm.Get( {36} )
_sname = _seriesm["column"];
// [178] Dim stype As String = seriesm.Get( {37} )
_stype = _seriesm["type"];
// [179] stype = stype.Replace( {38} , {39} )
_stype = _stype.split("horizontalbar").join("bar");
// [180] stype = stype.Replace( {40} , {41} )
_stype = _stype.split("stackedbar").join("bar");
// [181] stype = stype.Replace( {42} , {43} )
_stype = _stype.split("grouped-bar").join("bar");
// [182] If stype.Length > 0 Then
if (_stype.length > 0) {
// [183] sbx.Append( {3} )
_sbx.append("" + _sname + ":\"" + _stype + "\",");
// [184] End If
}
// [185] Next
}
// [186] sbx = App.RemDelimSB( {44} ,sbx)
= self._app.remdelimsb(",", );
// [187] sbx.Append( {45} )
_sbx.append("},");
// [188] Return sbx.tostring
return _sbx.toString();
// End Sub
};