5.1.2.6. Trend Page Chart Definitions

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

Every Node inside /dashboard2/ChartDefinitions defines a chart, and every binding inside the node defines a metric whose values will be displayed as a line inside the chart. These values are the formal metric names (like 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>