/home/optimumoperation/smritielectronics.com/platform/core/chart/src/LineChart.php
<?php

namespace Botble\Chart;

use Botble\Chart\Supports\Chart;

class LineChart extends Chart
{
    /**
     * Array containing colors for the series lines/points.
     *
     * @brief Line colors
     */
    protected array $lineColors = [
        '#0b62a4',
        '#7A92A3',
        '#4da74d',
        '#afd8f8',
        '#edc240',
        '#cb4b4b',
        '#9440ed',
    ];

    /**
     * Width of the series lines, in pixels.
     *
     * @brief Line width
     */
    protected int $lineWidth = 3;

    /**
     * Diameter of the series points, in pixels.
     *
     * @brief Point size
     */
    protected int $pointSize = 4;

    /**
     * Colors for the series points. By default, uses the same values as lineColors
     *
     * @brief Point fill colors
     */
    protected array $pointFillColors = [];

    /**
     * Colors for the outlines of the series points. (#fff by default).
     *
     * @brief Point stroke color
     */
    protected array $pointStrokeColors = [];

    /**
     * Set to false to disable line smoothing.
     *
     * @brief Smooth
     */
    protected bool $smooth = true;

    /**
     * A function that accepts millisecond timestamps and formats them for display as chart labels.
     * default: function (x) { return new Date(x).toString(); }
     *
     * @brief Date format
     */
    protected string $dateFormat = '';

    /**
     * Sets the x axis labelling interval. By default, the interval will be automatically computed.
     * The following are valid interval strings:
     *
     * "decade"
     * "year"
     * "month"
     * "day"
     * "hour"
     * "30min"
     * "15min"
     * "10min"
     * "5min"
     * "minute"
     * "30sec"
     * "15sec"
     * "10sec"
     * "5sec"
     * "second"
     *
     * @brief X labels
     */
    protected array $xLabels = [];

    /**
     * A function that accepts Date objects and formats them for display as x-axis labels. Overrides the default formatter
     * chosen by the automatic labeler or the xLabels option.
     *
     * eg: function (x) { return x.toString(); }
     *
     * @brief X label format
     */
    protected string $xLabelFormat = '';

    /**
     * A function that accepts y-values and formats them for display as y-axis labels.
     *
     * eg: function (y) { return y.toString() + 'km'; }
     *
     * @brief Y label format
     */
    protected string $yLabelFormat = '';
}