Adding a Chart Screen

Use the ComponentOne Chart Screen template to add chart to your project.

To add a ComponentOne Chart Screen to your project, follow these steps:

1.   In the Solution Explorer, right-click the Screens folder and select Add Screen.

2.   In the list of screen templates, select ComponentOne Chart Screen.

Note: If you do not see the ComponentOne Chart Screen option, make sure you have installed Studio for LightSwitch and included the extension in the project.

3.   Under Provide screen information, enter a Screen Name and select a data source from the list under ScreenData.

4.   Click OK. The C1Chart control is automatically added to the screen and bound to the selected data.

5.   Run the project, and the application will look similar to this example.

Please note: Even if you activate your license during installation, the first time you run a new Chart application, a reminder screen will appear. To prevent that from happening, open the LightSwitch screen designer, select the C1Chart node, and save the screen. In the Properties window, you should see a green shield icon next to the About C1Chart link. This indicates that C1Chart is licensed. You need to do this for every Chart screen you create, and every Data Grid that you replace with C1Chart.


ComponentOne Logo
Send comments about this topic to ComponentOne.
Copyright © GrapeCity, inc. All rights reserved.