Charts
The chart types specified here are supported by IBM® Operations Analytics Log Analysis. The chart specifications are contained in the <HOME>/AppsFrameowrk/chartspecs directory.
Displaying a chart: To display a chart,
you execute your Custom Search Dashboard from
the Search workspace. If you close a chart portlet, you must run the Custom Search Dashboard again
to reopen the chart.
These parameters are defined for all charts:
- type
- Specify the type of chart required. The value must match the ID of a chart specification that is contained in the <HOME>/AppFramework/chartspecs directory. The supported chart types are outlined in this section.
- title
- Specify the chart title.
- data
- Specify the ID for the data element that is represented in the chart. This ID specified must match to the ID provided in the dashboard specifications.
- parameters
- Fields to be displayed in the chart.
Line chart
The line chart is defined with
these limitations:
- Chart name: Line Chart
- Parameters:
xaxis
andyaxis
- Chart Specification:
{ "type": "Line Chart", "title": "Line Chart ( 2 parameters )", "data": { "$ref": "searchResults01" }, "parameters": { "xaxis": "timeStamp", "yaxis": "throughput" } }
- Aggregation To aggregate the throughput parameter, define
the following code:
The{ "type": "Line Chart", "title": "Line Chart ( 2 parameters )", "data": { "$ref": "searchResults01", "summarizeData": { "column": "throughput", "function": "sum" } }, "parameters": { "xaxis": "timeStamp", "yaxis": "throughput" }
summarizeData
key determines whether aggregation is to be performed or not.column
is the name of numeric column that uses the LONG or DOUBLE data type to perform aggregation on.sum
is the aggregation function to be applied. Supported functions are sum, min, max.
Bar chart
The bar chart is defined with
these limitations:
- Chart name: Bar Chart1
- Parameters:
xaxis
,yaxis
, andcategories
- Limitations: Only integer values are supported for the
yaxis
parameter. - Chart Specification:
{ "type": "Bar Chart", "title": "Bar Chart ( 3 parameters )", "data": { "$ref": "searchResults01" }, "parameters": { "xaxis": "timeStamp", "yaxis": "CPU", "categories": "hostname" } }
Point chart
The point chart is defined with
these limitations:
- Chart name: Point Chart
- Parameters:
xaxis
andyaxis
- Chart Specification:
{ "type": "Point Chart", "title": "Point Chart ( 2 parameters )", "data": { "$ref": "searchResults01" }, "parameters": { "xaxis": "timeStamp", "yaxis": "errorCode" } }
Pie chart
The pie chart is defined with
these limitations:
- Chart name: Pie Chart
- Parameters:
xaxis
andyaxis
- Chart Specification:
{ "type": "Pie Chart", "title": "Pie Chart ( 2 parameters )", "data": { "$ref": "searchResults03" }, "parameters": { "xaxis": "count", "yaxis": "severity" } }
Cluster bar chart
The cluster bar chart
is defined with these limitations:
- Chart name: Cluster Bar
- Parameters:
xaxis
,yaxis
, andsub-xaxis
- Chart Specification:
{ "type": "Cluster Bar", "title": "Cluster Bar ( 3 parameters )", "data": { "$ref": "searchResults02" }, "parameters": { "xaxis": "hostname", "yaxis": "errorCount", "sub-xaxis": "msgClassifier" } }
Bubble chart
The bubble chart is defined
with these limitations:
- Chart name: Bubble Chart
- Parameters:
xaxis
,yaxis
, andcategories
- Chart Specification:
The size of the bubble on the graph depends on the number of items in the parameter that is being represented. In some cases, for example if you have a large bubble and a small bubble, the large bubble may cover the smaller one.{ "type": "Bubble Chart", "title": "Bubble Chart ( 3 parameters )", "data": { "$ref": "searchResults01" }, "parameters": { "xaxis": "timeStamp", "yaxis": "CPU", "categories": "errorCode" } }
Tree map chart
The tree map chart is defined
with these limitations:
- Chart name: Tree Map
- Parameters:
level1
,level2
,level3
, andvalue
- Chart Specification:
{ "type": "Tree Map", "title": "Tree Map ( 4 parameters )", "data": { "$ref": "searchResults01" }, "parameters": { "level1": "hostname", "level2": "errorCode", "level3": "severity", "value":"CPU" } }
Two-series line chart
The two-series line
chart is defined with these limitations:
- Chart name: Two Series Line Chart
- Parameters:
xaxis
,yaxis1
, andyaxis2
- Chart Specification:
{ "type": "Two Series Line Chart", "title": "Two Series Line Chart ( 3 parameters)", "data": { "$ref": "searchResults01" }, "parameters": { "xaxis": "timeStamp", "yaxis1": "throughput", "yaxis2": "ResponseTime" } }
Stacked bar chart
The stacked bar chart
is defined with these limitations:
- Chart name: Stacked Bar Chart
- Parameters:
xaxis
,yaxis
, andcategories
- Chart Specification:
{ "type": "Stacked Bar Chart", "title": "Stacked Bar Chart ( 3 parameters )", "data": { "$ref": "searchResults01" }, "parameters": { "xaxis": "hostname", "yaxis": "CPU", "categories": "severity" } }
Stacked line chart
The stacked line chart
is defined with these limitations:
- Chart name: Stacked Line Chart
- Parameters:
xaxis
,yaxis
, andcategories
- Chart Specification:
{ "type": "Stacked Line Chart", "title": "Stacked Line Chart ( 3 parameters )", "data": { "$ref": "searchResults01" }, "parameters": { "xaxis": "threadID", "yaxis": "timestamp", "categories": "MBO" } }
Heat map
The heat map chart is defined with
these limitations:
- Chart name: Heat map
- Parameters:
xaxis
,yaxis
, andcount
- Chart Specification:
{ "type": "Heat Map", "title": "Heat Map ( 3 parameters )", "data": { "$ref": "searchResults01" }, "parameters": { "xaxis": "messageClassifier", "yaxis": "hostname", "count": "throughput" } }