#include <BarChart.h>
◆ BarChart()
bridges::datastructure::BarChart::BarChart |
( |
| ) |
|
|
inline |
◆ addDataSeries()
void bridges::datastructure::BarChart::addDataSeries |
( |
std::string |
seriesName, |
|
|
std::vector< double > |
data |
|
) |
| |
|
inline |
Add a series of data.
This will throw an exception if the data vector does not have the same size as the number of categories.
This will throw exceptions if two series have the same name.
- Parameters
-
seriesName | indicates the name of the data to add |
data | values of that serie for each category |
◆ getBarOrientation()
std::string bridges::datastructure::BarChart::getBarOrientation |
( |
| ) |
const |
|
inline |
gets the bar chart orientation
- Returns
- orientation (either "horizontal" or "vertical")
◆ getCategoriesLabel()
std::string bridges::datastructure::BarChart::getCategoriesLabel |
( |
| ) |
const |
|
inline |
Returns the axis label for the categories.
- Returns
- label shown for the categories
◆ getDataStructureRepresentation()
virtual const std::string bridges::datastructure::BarChart::getDataStructureRepresentation |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ getDStype()
virtual const string bridges::datastructure::BarChart::getDStype |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ getSubTitle()
std::string bridges::datastructure::BarChart::getSubTitle |
( |
| ) |
const |
|
inline |
get the subtitle of the plot
- Returns
- the subtitle to be shown
◆ getTitle()
std::string bridges::datastructure::BarChart::getTitle |
( |
| ) |
const |
|
inline |
Title of the plot.
- Returns
- the title to be shown
◆ getTooltipSuffix()
std::string bridges::datastructure::BarChart::getTooltipSuffix |
( |
| ) |
const |
|
inline |
gets the tooltip suffix
- Returns
- suffix
◆ getValueLabel()
std::string bridges::datastructure::BarChart::getValueLabel |
( |
| ) |
const |
|
inline |
Returns the label for the value axis.
- Returns
- label shown for the value axis
◆ setBarOrientation()
void bridges::datastructure::BarChart::setBarOrientation |
( |
const std::string & |
orient | ) |
|
|
inline |
sets the bar chart orientation
- Parameters
-
orient | can be 'horizontal' or 'vertical'. (Throws exception on other values) |
◆ setCategories()
void bridges::datastructure::BarChart::setCategories |
( |
std::vector< std::string > |
categories | ) |
|
|
inline |
set the categories for this bar chart
Will throw an exception if there are already data series defined.
- Parameters
-
categories | Names of different categories |
◆ setCategoriesLabel()
void bridges::datastructure::BarChart::setCategoriesLabel |
( |
const std::string & |
cAxisName | ) |
|
|
inline |
Change the label for categoryt axis.
- Parameters
-
cAxisName | label to use for the category axis |
◆ setSubTitle()
void bridges::datastructure::BarChart::setSubTitle |
( |
const std::string & |
s | ) |
|
|
inline |
set subtitle of the plot
- Parameters
-
s | the subtitle to be shown |
◆ setTitle()
void bridges::datastructure::BarChart::setTitle |
( |
std::string |
t | ) |
|
|
inline |
Title of the plot.
- Parameters
-
◆ setTooltipSuffix()
void bridges::datastructure::BarChart::setTooltipSuffix |
( |
const std::string & |
suffix | ) |
|
|
inline |
sets the tooltip suffix
This appends a string to the values in the hover tooltip.
- Parameters
-
◆ setValueLabel()
void bridges::datastructure::BarChart::setValueLabel |
( |
const std::string & |
vAxisName | ) |
|
|
inline |
Change the label for the value axis.
- Parameters
-
vAxisName | label to show for the value axis |
The documentation for this class was generated from the following file: