diff options
author | Aritz Erkiaga <aerkiaga3@gmail.com> | 2021-03-25 09:25:27 +0100 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-05-21 09:55:36 +0200 |
commit | c8598f28db8ef5ab5f695cf1af645bb43dbc264d (patch) | |
tree | 6cbd9328749473089ec4f8eeefe5e0737049b048 /offapi | |
parent | 9431984f8d39a4d7fb9428138ecc6971c212c122 (diff) |
tdf#138556 Don’t add Open Values to stock chart types 1 and 3
A new function was defined, XdataInterpreter::getChartTypeSpecificData.
Being 100% chart-type-agnostic when retrieving chart data is impossible;
candlestick charts can have different numbers of sequences per series,
and this information is not present in any other chart type.
Change-Id: I0f54b09202c42667331b083d54d90e4ceee81083
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113075
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'offapi')
-rw-r--r-- | offapi/com/sun/star/chart2/XDataInterpreter.idl | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/offapi/com/sun/star/chart2/XDataInterpreter.idl b/offapi/com/sun/star/chart2/XDataInterpreter.idl index 9f2d465ae179..f8826ee8e23c 100644 --- a/offapi/com/sun/star/chart2/XDataInterpreter.idl +++ b/offapi/com/sun/star/chart2/XDataInterpreter.idl @@ -86,6 +86,24 @@ interface XDataInterpreter : ::com::sun::star::uno::XInterface the result of this method should be <code>xSource</code>.</p> */ com::sun::star::chart2::data::XDataSource mergeInterpretedData( [in] InterpretedData aInterpretedData ); + + /** Get chart information that is specific to a particular chart + type, by key. + + @param sKey + name of the piece of data to retrieve. + + <p>Supported key strings:</p> + <ul> + <li><tt>"stock variant"</tt>: stock chart variant, + with 0 = neither Open Values nor volume, 1 = Open Values, + 2 = volume, 3 = both. Valid for candlestick charts.</li> + </ul> + + @return + The value requested, or nothing if not present. + */ + any getChartTypeSpecificData([in] string sKey ); }; } ; // chart2 |