Table of Contents
private void Grid_Loaded(object sender, RoutedEventArgs e) {
} 8. Insert the code given below to Grid_loaded event handler: label.Content = "Rendering FusionCharts in WPF application";
StringBuilder html = new StringBuilder();
html.Append("");
html.Append("");
html.Append("");
html.AppendFormat("");
html.Append("");
html.Append("");
html.Append("");
html.Append(" “); html.Append(” ");
html.Append("");
webb.NavigateToString(html.ToString()); 9. Run the application. The output looks like as shown in the image below: using FusionCharts.Charts;3. In Grid_Loaded event handler, add the code given below:
label.Content = "Rendering FusionCharts in WPF application";
StringBuilder chart = new StringBuilder();
chart.Append("{'chart': {'caption': 'Sales of Liquor', 'subCaption': 'Last week', 'xAxisName': 'Day', 'yAxisName': 'Sales (In USD)', 'numberPrefix': '$', 'paletteColors': '#0075c2', 'bgColor': '#ffffff', 'showBorder': '0', 'showCanvasBorder': '0', 'plotBorderAlpha': '10', 'usePlotGradientColor': '0', 'plotFillAlpha': '50', 'showXAxisLine': '1', 'axisLineAlpha': '25', 'divLineAlpha': '10', 'showValues': '1', 'showAlternateHGridColor': '0', 'captionFontSize': '14', 'subcaptionFontSize': '14', 'subcaptionFontBold': '0', 'toolTipColor': '#ffffff', 'toolTipBorderThickness': '0', 'toolTipBgColor': '#000000', 'toolTipBgAlpha': '80', 'toolTipBorderRadius': '2', 'toolTipPadding': '5'}, 'data': [{'label': 'Mon', 'value': '4123'}, {'label': 'Tue', 'value': '4633'}, {'label': 'Wed', 'value': '5507'}, {'label': 'Thu', 'value': '4910'}, {'label': 'Fri', 'value': '5529'}, {'label': 'Sat', 'value': '5803'}, {'label': 'Sun', 'value': '6202'} ] }");
Chart revenueChart = new Chart("column2d", "ch1", "400", "400", "json", chart.ToString());
StringBuilder Total = new StringBuilder();
Total.Append("");
Total.Append("");
Total.Append("");
Total.AppendFormat("");
Total.Append("");
string chartdata = revenueChart.Render();
Total.Append(chartdata);
Total.Append("");
Total.Append("");
webb.NavigateToString(Total.ToString()); 4. Run the application. The output looks like as shown in the image below: To create pie charts and generate statistical data, you’ll find this list of the best…
To implement FusionCharts in a dynamically resizing flexbox layout, ensure that the chart's dimensions are…
At FusionCharts, we believe in empowering developers and businesses with cutting-edge data visualization tools that…
Ever had a data set that seemed more complicated than a Rubik's cube? You’re not…
We’ve all seen them in textbooks or presentations—those overlapping circles that simplify complex information into…
We’re excited to announce the upcoming release of FusionCharts v4.1—a groundbreaking step forward in the…