Exemple #1
0
        public Bitmap ProducePlot(Size canvasSize)
        {
            GraphItem graphItem = new GraphItem();

            graphItem.mMarkerFillColor    = Color.Red;
            graphItem.mMarkerOutlineColor = Color.Black;
            graphItem.mMarkerSize         = 4.0f;
            graphItem.mMarkerOutlineSize  = 1.0f;
            graphItem.mMarkerShape        = GraphMarker.Circle;
            graphItem.mTrendLine          = true;
            graphItem.mTrendLineColor     = Color.Blue;
            graphItem.mTrendLineSize      = 1.0f;

            Graph graph = new Graph(mMultipleTimeseries, canvasSize, "Timeseries", "Time", "Amount");

            graph.setHorizontalAxis(mMultipleTimeseries.getStartDate(), mMultipleTimeseries.getEndDate());
            graph.setVerticalAxis(0, mMultipleTimeseries.getMax());
            graph.setSize(new Size(2048, 2048));

            for (int i = 0; i < mMultipleTimeseries.getColumns(); ++i)
            {
                graph.addData(new GraphItem(graphItem, i, ""));
            }

            return(graph.getGraph());
        }
Exemple #2
0
        public DatePlus(MultipleTimeseries data, bool from = true)
        {
            if (from)
            {
                mDate = mDate = new DateTime(data.getStartDate().Ticks);
            }
            else
            {
                mDate = mDate = new DateTime(data.getEndDate().Ticks);
            }

            mUnit = data.mTimeUnit;
            mZone = TimeZoneInfo.Utc;
        }