Giter VIP home page Giter VIP logo

winforms-charts-configure-settings-for-template-series-and-series-added-manually's Introduction

WinForms Chart - Simultaneously Configure Settings for Template Series and Series Added to the Chart Manually

Follow the steps below to implement this scenario:

  1. Create a Windows Forms Application in Visual Studio, and add all required assemblies to the References list of your project.

  2. Create a chart in the Form1_Load event handler.

  3. Populate the chart with autogenerated series:

    Use the ChartControl.DataSource property to bind the chart to a data source. The custom GetSeriesTemplateData method returns the chart's data in this example.

    Use the ChartControl.SeriesDataMember property to specify the data field that contains series names.

    Set the ChartControl.SeriesTemplate.View property to LineSeriesView to generate line series.

  4. Call the custom ConfigureSeries method with the ChartControl.SeriesTemplate object passed as a parameter to specify the following settings for all template series: ArgumentDataMember, ValueDataMembers, ArgumentScaleType, ValueScaleType, LabelsVisibility, and Label.TextPattern.

  5. Add a single series:

    Call the Series(String, ViewType) constructor to create a series. Pass the series name and series type as parameters to this method.

    Use the Series.DataSource property to bind the series to a data source. The custom GetSeriesData method returns the series data.

    Add the series to the ChartControl.Series collection.

  6. Call the custom ConfigureSeries method with the series passed as a parameter to specify series settings.

  7. Use the ChartControl.Dock property to specify the chart position. Call the Controls.Add method to add the chart to the form.

Files to Review

Documentation

winforms-charts-configure-settings-for-template-series-and-series-added-manually's People

Contributors

eugeniasimonova avatar ritazakhodyaeva avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.