5.1.2.6. Trend Page Chart Definitions

The charts displayed upon opening the trend page must currently be configured globally in the dashboard2.config file, similar to the example in Figure Chart configuration of Trend Page in dashboard2.config..

Each node within /dashboard2/ChartDefinitions defines a chart, and each binding within that node defines a metric whose values are displayed as a line in the chart. These values are the formal metric names (such as Metric.Violations.Style or Metric.Lines.LOC.sum).

Chart configuration of Trend Page in dashboard2.config.
  <Node Key="ChartDefinitions">
    <Node Key="ArchitectureViolationCount">
      <Binding Key="1" Value="Metric.Violations.Architecture"/>
    </Node>
    <Node Key="CloneCount">
      <Binding Key="1" Value="Metric.Violations.Clone"/>
    </Node>
    <Node Key="StyleViolationCount">
      <Binding Key="1" Value="Metric.Violations.Style"/>
    </Node>
    <Node Key="DeadEntityCount">
      <Binding Key="1" Value="Metric.Violations.Dead_Entity"/>
    </Node>
    <Node Key="MetricViolationCount">
      <Binding Key="1" Value="Metric.Violations.Metric"/>
    </Node>
    <Node Key="CycleCount">
      <Binding Key="1" Value="Metric.Violations.Cycle"/>
    </Node>
    <Node Key="LineCounts">
      <Binding Key="1" Value="Metric.Lines.Comment.sum"/>
      <Binding Key="2" Value="Metric.Lines.LOC.sum"/>
    </Node>
    <Node Key="Complexity">
      <Binding Key="1" Value="Metric.Number_Of_Statements.sum"/>
      <Binding Key="2" Value="Metric.McCabe_Complexity.sum"/>
    </Node>
  </Node>