QPR ProcessAnalyzer Graphs: Difference between revisions

From QPR ProcessAnalyzer Wiki
Jump to navigation Jump to search
Line 4: Line 4:


== Chart Colors ==
== Chart Colors ==
Colors are based on following:
Series colors in charts are based on following settings:
* Series colors come by default from the color palette
* Series colors come by default from a color palette.
* Series colors can be overriden for individual measures/dimensions
* Custom color palette can be defined.
* Data point colors override series color for individual datapoints
* Series colors can be overridden for individual measures/dimensions.
* Data points can be defined using a measures/dimensions that is mapped to a data point color
 
* Conditional formatting can be used to define rules for data point color for individual series
If defined, the data point colors override series colors for individual data points. Data point colors can be defined using following rules:
* Data point colors can be defined for all series using a measure/dimension that is mapped to a data point color.
* Conditional formatting can be used to define rules for data point colors for individual series. This will override the previous.


==Customization Examples==
==Customization Examples==

Revision as of 16:45, 2 November 2020

Graph Functionalities

Graph has the following functionalities:

Chart Colors

Series colors in charts are based on following settings:

  • Series colors come by default from a color palette.
  • Custom color palette can be defined.
  • Series colors can be overridden for individual measures/dimensions.

If defined, the data point colors override series colors for individual data points. Data point colors can be defined using following rules:

  • Data point colors can be defined for all series using a measure/dimension that is mapped to a data point color.
  • Conditional formatting can be used to define rules for data point colors for individual series. This will override the previous.

Customization Examples

Example for hiding legend.

{
  "legend": {
    "enabled": false
  }
}

Example for forcing a minimum value for the first (left side) Y-axis.

{
  "yAxis": [
    {
      "min": 0,
      "max": 100
    }
  ]
}

Example for forcing a minimum value for two Y-axes (left and right side).

{
  "yAxis": [
    {
      "min": 0,
      "max": 100
    },
        {
      "min": 0,
      "max": 10000
    }
  ]
}

Example for forcing a minimum and maximum value for the second (right side) Y-axis without forcing a maximum value on the first (left side) Y-axis and giving custom titles for the two Y-axes.

{
  "yAxis": [
    {
      "min": 0,
      "title": {
        "text": "Left Y-axis"
      }
    },
    {
      "min": 0,
      "max": 100,
      "title": {
        "text": "Right Y-axis"
      }
    }
  ]
}

Example for hiding the second Y-axis.

{
 "yAxis": [
   {
     "visible": true
   },
   {
     "visible": false
   }
 ]
}

Example for forcing a minimum value for the X-axis.

{
  "xAxis": {
    "min": 0,
    "max": 10
  }
}

Example for reversing order for the Y-axis.

{
  "yAxis": [
    {
      "reversed": true
    }
  ]
}

Conditional Formatting

Define color for data points (column, bar, point depending on chart type), based on the data point value.

{
	"color": {
		"rules": [
			{
				"value": 100,
				"comparison": ">",
				"color": "#36d475"
			},
			{
				"color": "#EF5254"
			}
		]
	}
}