/****************************************************************************
 * This file is part of the project AqDiagram.
 * AqDiagram (c) by 2025 Martin Preuss, all rights reserved.
 *
 * The license for this file can be found in the file COPYING which you
 * should have received along with this file.
 ****************************************************************************/

#ifndef AQDG_GRAPH_BARGRAPH_H
#define AQDG_GRAPH_BARGRAPH_H

#include <aqdiagram/placement/object.h>
#include <aqdiagram/graph/graph.h>


#define AQDG_BARGRAPH_SETUPTICKS_FLAGS_MINY 0x01
#define AQDG_BARGRAPH_SETUPTICKS_FLAGS_MAXY 0x02


#ifdef __cplusplus
extern "C" {
#endif


AQDG_API AQDG_GRAPH *AQDG_BarGraph_new(const char *sTitle,
                                       const char *sSubTitle,
                                       const char *sYLabel,
                                       const char *sYUnits,
                                       int yPrecision);

AQDG_API void AQDG_BarGraph_AddCurve(AQDG_GRAPH *g, const char *sLabel, int graphType, AQDG_GRAPH_DATAPAIR_LIST *dpList);
AQDG_API void AQDG_BarGraph_SetupTicks(AQDG_GRAPH *g, uint32_t flags, double minY, double maxY);




#ifdef __cplusplus
}
#endif


#endif

