Posted 3 April 2020, 7:39 pm EST
I am working in ASP.NET Web Forms developing a BarChart in the Client Side using Wijmo, JavaScript, Json and POST, exactly as the example you show at:
https://www.grapecity.com/componentone/docs/webforms/online-barchart/drillingdowninbarchartdata1.html
I am trying to suppress the Chart Labels (using JavaScript/JQuery) which display
s the Y value at the top of each Bar, a feature that, for my client
s purposes is irrelevant and confusing. I am trying to set the ShowChartLabels value to false, and have tried several ways to do it. My code at the moment is:$(“#bcKitCount”).c1barchart({
showchartlabels:false,
header: { text: “Tools in Kits
" + args.x + "
” },hint: { content: function () { return this.x + ‘\n ’ + this.y + ’ Tools’; } },
horizontal: false,
dataSource: arr,
seriesList: [{
label: “Tool Members”,
legendEntry: false,
data: { x: { bind: “KitName” }, y: { bind: “ToolQty” } }
}],
seriesStyles: [{ fill: “270-#Ef49d0-#1f2680”, stroke: “#Ef4860”, opacity: 0.8 }]
});
bcKitCount is my BarChart, which has markup:
<wijmo:C1BarChart ID=“bcKitCount” runat=“server” Horizontal=“false” Width=“100%” Height=“95%” ShowChartLabels=“false”>
<wijmo:ChartStyle StrokeWidth=“1.5” Opacity=“1”>
</wijmo:ChartStyle>
Nothing seems to work to suppress the Chart Label when the Chart is re-created with new Data. The ShowChartLabels="false" Property in the markup does work, but obviously has no effect once the chart is cleared and redrawn. Could you please point to the place where I can find the right JavaScript/JQuery to switch this setting off in code. PS. I am using NET Framework 4.6.1.