OK In progress...

This commit is contained in:
Kolan Sh 2018-01-22 15:10:47 +03:00
parent 5db6dfc490
commit 5342b49bf7
1 changed files with 9 additions and 2 deletions

View File

@ -152,14 +152,23 @@ namespace CairoChart {
*/ */
public double font_spacing = 5; public double font_spacing = 5;
/**
* Number of equally placed points to evaluate records sizes.
*/
public int nrecords = 128;
/** /**
* Constructs a new ``Axis``. * Constructs a new ``Axis``.
* @param chart {@link Chart} instance.
*/ */
public Axis (Chart chart) { public Axis (Chart chart) {
this.chart = chart; this.chart = chart;
title = new Text (chart, ""); title = new Text (chart, "");
} }
/**
* Gets a copy of the ``Axis``.
*/
public virtual Axis copy () { public virtual Axis copy () {
var axis = new Axis (chart); var axis = new Axis (chart);
axis._date_format = this._date_format; axis._date_format = this._date_format;
@ -180,8 +189,6 @@ namespace CairoChart {
return axis; return axis;
} }
public int nrecords = 128;
public virtual void format_date_time (Float128 x, out string date, out string time) { public virtual void format_date_time (Float128 x, out string date, out string time) {
date = time = ""; date = time = "";
var dt = new DateTime.from_unix_utc((int64)x); var dt = new DateTime.from_unix_utc((int64)x);