JavaScript is not currently enabled, but is required for full CodeSonar manual search and browse functionality.
If you are viewing this file in your hub's Web GUI, enable JavaScript in your browser: you will also need it for GUI functionality.
If you opened this file directly from disk, your browser may be directly suppressing JavaScript functionality: certain browsers perform this suppression on local files (but not files delivered by web servers) for security reasons.
| CodeSonar® 9.2p0 | CONFIDENTIAL | CodeSecure Inc |
Define new charts that display information from the CodeSonar hub, modify existing charts.
Permission requirements for charting are discussed in Charts and Chart Tables: Permissions.
Charting is available for all analyses, regardless of the language or languages involved. However, charts and tables of procedure data will only include data from C/C++, C#, and Java code: procedure information is not available for other languages.
The chart wizard opens on top of the page from which it was invoked.
| From Chart or Chart Table: |
Any of the following selections from the Options menu bar:
|
|---|---|
| From Analysis, Project, or Home | Expand the Charts and Tables section, then select create new chart |
The following annotated screenshot fragment shows the different parts of the CodeSonar chart wizard.
| title | Either Create new chart or Edit this chart. |
|---|---|
| tabs | The wizard is divided into "tabs" that group related content. Use these links to move between the tabs. The available tabs depend on the type of chart. |
| tab contents | Depend on the tab and on the type of chart. Full details are below. |
| previous/next links | Provide a standard path through the tabs, and allow for backtracking. |
| close button | Click to close the chart wizard without drawing a new chart or altering an existing one. |
| chart preview | A preview of the chart corresponding to the current selections in the wizard. Click hide preview to close the preview panel, show preview to open it. |
| buttons |
Click Cancel to close the
chart wizard without drawing a new chart or altering an
existing one.
The label on the other button is Create Chart if you are creating a new chart, Update Chart if you are editing an existing chart. Click this button to close the chart wizard and draw the chart specified. |
| Purpose | Selecting the type of chart that will be created. |
|---|---|
| Available for: | All chart types. |
| Chart Type | Brief Description | Wizard Tabs |
|---|---|---|
| bar | Horizontally-oriented bar chart. | chart type, data, groups, order, search, options |
| column | Vertically-oriented bar chart. | chart type, data, groups, order, search, options |
| line | Line chart showing changes in one or more variables over the analyses of a single project. | chart type, data, groups, search, options |
| scatterplot | Scatterplot showing the relationships between two variables | chart type, data, groups, search, options |
| pie | A pie chart. | chart type, data, search, options |
| Purpose: | specify the data categories and values to display in the chart. |
|---|---|
| Available for: | all chart types. |
The tab contents depend on the chart type (as selected in the chart type tab).
Charts where one axis is Procedure and the other axis is a metric are based on a sample of the data specified on the Data and Search tabs rather than the full set of data. Specific sampling behavior is defined by the Sample and Sample Size fields on the Options tab.
| Chart Type | Fields | ||||||
|---|---|---|---|---|---|---|---|
| bar |
|
||||||
| column |
|
||||||
| line |
|
||||||
| scatterplot |
|
||||||
| pie |
|
Use the search tab to specify additional constraints on the charted values.
The following table shows the available categories-values pairs for bar, column, and pie charts. (X = available, . = not available).
| VALUES | |||||
|---|---|---|---|---|---|
| Number of Files | Number of Lines | Number of Warnings | Other Metrics [see note] | ||
| CATEGORIES | Analyses | X | X | X | all analysis-granularity metrics available |
| Classes | . | . | X | . | |
| Directories | X | X | X | all file-granularity metrics available | |
| Files | . | X | X | all file-granularity metrics available | |
| Findings | . | . | X | . | |
| Languages | X | X | X | all file-granularity metrics available | |
| Owners | . | . | X | . | |
| Priorities | . | . | X | . | |
| Procedures | . | . | X | all procedure-granularity metrics available | |
| Projects | X | X | X | all analysis-granularity metrics available | |
| Significances | . | . | X | . | |
| States | . | . | X | . | |
Metric Note: a metric class is 'available' if is it present in at least one analysis that has taken place on the hub (subject to ANALYSIS_READ permission).
| Purpose: | specify a secondary category for grouping the chart data. |
|---|---|
| Available for: | bar, column, line, and scatterplot charts. |
All chart types except for pie charts allow the charted data to be grouped in various ways.
The available groups in bar, column, and line charts are the same as the domain options corresponding to your range selection (that is, one of the columns in the domain-range table), with the following exceptions.
The full set of exceptions is thus the following.
| When Domain is... | ...you can't group by... |
|---|---|
| Analyses | Analysis, Project |
| Classes | Class |
| Directories | Directory |
| Files | File, Directory, Analysis, Project |
| Findings | Finding |
| Languages | Language |
| Owners | Owner |
| Priorities | Priority |
| Procedures | Procedure, File, Directory, Analysis, Project |
| Projects | Project |
| States | State |
| Purpose: | specify a display order for the chart's data points. |
|---|---|
| Available for: | bar and column charts. |
The bars in bar and column charts can be ordered by specifying a data category to Order By and a Direction.
| Order By |
The available options depend on your domain selection as
follows. Note that Count always refers to the length of
the bar.
|
||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Direction | The available ordering directions are always Ascending and Descending. |
| Purpose: | specify a subset of the selected data to chart, using CodeSonar search functionality. |
|---|---|
| Available for: | all chart types. |
| if values are... | ...search domain is... |
|---|---|
| Number of Warnings | warnings |
| Number of Files | files |
| otherwise | metrics |
Note that line charts have fixed scope, consisting of the project(s) selected in the data tab.
| Purpose: | specify captions and other aspects of chart appearance. |
|---|---|
| Available for: | all chart types. |
Different chart types have different associated options, as shown in the following tables.
| Chart Type | Options Tab Fields | |||||||
|---|---|---|---|---|---|---|---|---|
| Title | X Axis | Y Axis | Sample | Sample Size | Angled Labels | Log Scale | Show Legend | |
| bar | X | X | X | (X) | (X) | . | X | (X) |
| column | X | X | X | (X) | (X) | X | X | (X) |
| line | X | X | X | . | . | X | X | (X) |
| scatterplot | X | X | X | (X) | (X) | . | XX | . |
| pie | X | . | . | (X) | (X) | . | . | . |
| Option | Description | Displayed |
|---|---|---|
| Title | Title for the chart. | Top of chart and chart page heading. |
| X Axis Label | Caption for the X Axis. | Under X axis. |
| Y Axis Label | Caption for the Y Axis. | Left of Y axis. |
| Sample |
Select the sampling strategy from the following:
Uniform Sampling: chart approximately every Nth value, in sorted order based on metric value, where N = Procedures / Sample Size. Note: Procedures = the number of in-scope procedures that satisfy conditions defined on the Search tab. Highest Values: chart the M highest values in the set where M is the Sample Size. Lowest Values: chart the M lowest values in the set where M is the Sample Size.
|
- |
| Sample Size |
Define the number of sampled data points to be displayed in the
chart (this corresponds to the value of M and N in the Sample field).
|
- |
| Angled Labels | If selected, X Axis labels will be oriented at a 45°
angle. If unselected, X Axis labels will be oriented vertically. |
- |
| Log Scale |
If selected, the value axis will use a logarithmic
scale.
If unselected, the value axis will use a linear scale.
|
- |
| Show Legend |
If selected, a chart legend will be displayed.
If unselected, no legend will be displayed.
|
Toward top right corner of chart. |
To report problems with this documentation, please visit https://support.codesecure.com/.