LineChart.h

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#pragma once
 
#include "stdafx.h"
 
class LineChart {
public:
    LineChart();
    void setTitle( const std::string& title );
    void setSeries( const std::vector<double>& x,
                    const std::vector<double>& y );
    void writeAsHTML( std::ostream& out ) const;
    void writeAsHTML( const std::string& file ) const;
private:
    std::string title;
    std::vector<double> x;
    std::vector<double> y;
};
 
 
void testLineChart();