vb.net code has syntax errors after conversion -
vb.net code has syntax errors after conversion
i need convert c# code vb.net http://highcharts.codeplex.com/wikipage?title=create%20a%20column%20chart
using online tool http://www.developerfusion.com/tools/convert/csharp-to-vb
after conversion vb.net code below
hcfrutas.title = new title("consumo de frutas") hcfrutas.subtitle = new subtitle("agrupados por tipo de fruta") 'defining axis hcfrutas.yaxis.add(new yaxisitem() { _ key .title = new title("unidades") _ }) hcfrutas.xaxis.add(new xaxisitem() { _ key .categories = new () {"macas", "laranjas", "peras", "bananas", "uvas"} _ }) 'data dim series = new collection(of serie)() series.add(new serie() { _ key .name = "andre", _ key .data = new object() {4, 15, 5, 17, 14} _ }) series.add(new serie() { _ key .name = "ivan", _ key .data = new object() {4, 25, 6, 12, 6} _ }) series.add(new serie() { _ key .name = "marina", _ key .data = new object() {7, 19, 2, 34, 5} _ }) series.add(new serie() { _ key .name = "camila", _ key .data = new object() {3, 14, 6, 21, 9} _ }) 'configuring visual hcfrutas.plotoptions = new core.plotoptions.plotoptionscolumn() { _ key .bordercolor = "#dedede", _ key .borderradius = 4 _ } 'bind hcfrutas.datasource = series hcfrutas.databind() please in resolving above errors in vb.net code json string unable convert in vb.net
you should delete occurences of key
. with
statement not need reference within block. e.g.:
hcfrutas.yaxis.add(new yaxisitem() { _ .title = new title("unidades") _ })
Comments
Post a Comment