Customizing the Graph Control in Reports
- Updated2025-07-23
- 3 minute(s) read
You can customize the graph control for your reports by editing the stylesheet for the report.
Removing Grid Lines
Complete the following steps to remove grid lines from the graph:
- Open one of the following files in a text editor:
- For HTML reports, open <TestStand_Components>\Models\TestStandModels\modelsupport2\c_report.c.
- For XML and ATML reports, open the stylesheet listed in the Style Sheet field of the Report Options dialog box.
- Search for the GRID_LINES comment.
- Set the value of the variable gridLines to "grid-lines" to enable grids lines, or to "" to disable grid lines.
- For HTML reports, open <TestStand_Components>\Models\TestStandModels\modelsupport2\modelsupport2.prj in LabWindows/CVI and build modelsupport2.dll for the corresponding bitness of TestStand you are using.
The following image shows how the graph looks without grid lines.
Enabling the Display of Coordinates when Hovering Over a Point
Complete the following steps to enable displaying coordinates when you hover a mouse over a point on the graph:
- Open one of the following files in a text editor:
- For HTML reports, open <TestStand_Components>\Models\TestStandModels\modelsupport2\c_report.c.
- For XML and ATML reports, open the stylesheet listed in the Style Sheet field of the Report Options dialog box.
- Search for the ENABLE_HOVER comment.
- Set the value of the variable enableHover to "enable-hover" to enable hovering, or to "" to disable hovering.
- For HTML reports, open <TestStand_Components>\Models\TestStandModels\modelsupport2\modelsupport2.prj in LabWindows/CVI and build modelsupport2.dll for the corresponding bitness of TestStand you are using.
The following image shows how the graph looks when hover is enabled.
Changing the Background Color of the Graph (Excluding the Plot)
Complete the following steps to change the background color of the area outside the plot of the graph:
- Open one of the following files in a text editor:
- For HTML reports, open <TestStand_Components>\Models\TestStandModels\modelsupport2\c_report.c.
- For XML and ATML reports, open the stylesheet listed in the Style Sheet field of the Report Options dialog box.
- Search for the CHANGE_BACKGROUND_COLOR comment.
- Change the value of background-color in the <ni-cartesian-graph> tag to the required color name or hex color code. Refer to HTML Color Codes for more information.
- For HTML reports, open <TestStand_Components>\Models\TestStandModels\modelsupport2\modelsupport2.prj in LabWindows/CVI and build modelsupport2.dll for the corresponding bitness of TestStand you are using.
The following image shows how the graph looks when value is set to #dddddd.
Changing the Background Color of the Plot
Complete the following steps to change the background color of the plot area of the graph:
- Open <TestStand_Components>\Models\TestStandModels\GraphControl\TSGraphStyle.css in a text editor.
- Search for the CHANGE_BACKGROUND_COLOR comment.
- Change the value of background-color to the required color name or hex color code. Refer to HTML Color Codes for more information.
The following image shows how the graph looks when the value is set to #000000 (black).