wxIshiko / wxCharts

A library to create charts in wxWidgets applications
https://www.wxishiko.com/wxCharts/
MIT License
114 stars 50 forks source link

Math 2D plot line mode not working. #170

Closed AleksanderSiwek closed 3 years ago

AleksanderSiwek commented 3 years ago

When you use SetChartType(0, wxCHARTTYPE_LINE); on wxMath2DPlotCtrl object it does not print plot with lines.

Kvaz1r commented 3 years ago

It seems that mistake in sample, could you check if replace line color

    wxMath2DPlotDataset::ptr dataset(
        new wxMath2DPlotDataset(
            wxColor(255, 255, 255, 0), // <- transparent
            wxColor(250, 20, 20, 0x78),
            wxColor(0, 0, 0, 0xB8),
            points)
    );

with:

    wxMath2DPlotDataset::ptr dataset(
        new wxMath2DPlotDataset(
            *wxBLACK,
            wxColor(250, 20, 20, 0x78),
            wxColor(0, 0, 0, 0xB8),
            points)
    );