cornford-michael icon

Untitled

cornford-michael | PRO | 06/09/23 01:21:37 PM UTC (Edited) | 0 ⭐ | 1252 👁️ | Never ⏰ | []
JavaScript |

7.63 KB

|

None

|

0 👍

/

0 👎

export const dataChart = {
  object: {
    schema: [
      { name: "Time", type: "date", format: "%Y-%m-%d %H:%M:%S" },
      { name: "Gross Output", type: "number" },
      { name: "Coal Flow", type: "number" },
      { name: "HP Turbine First Stage Temp.", type: "number" },
      { name: "Main Steam Press.", type: "number" },
      { name: "Main Steam Temp.", type: "number" },
      { name: "ST Speed", type: "number" },
      { name: "Furnace Temperature", type: "number" },
      { name: "ST Metal Temperature", type: "number" },
      { name: "Oil Flow", type: "number" },
      { name: "Condenser Vacuum", type: "number" },
      { name: "Main Steam Temp. (Ref) ", type: "number" },
    ],
    data: [
      [
        "2023-03-01 14:20:00",
        2.83,
        7.25,
        null,
        2.93,
        460.65,
        3010.01,
        890.4,
        183.33,
        2.14,
        -56.55,
        null,
      ],
      [
        "2023-03-01 14:25:00",
        2.68,
        6.85,
        null,
        3.08,
        461.22,
        3011.84,
        886.5,
        190.0,
        2.14,
        -54.63,
        null,
      ],
      [
        "2023-03-01 14:30:00",
        2.7,
        7.36,
        null,
        3.26,
        461.51,
        3007.87,
        886.65,
        196.3,
        0.0,
        -54.23,
        null,
      ],
      [
        "2023-03-01 14:35:00",
        3.37,
        7.43,
        null,
        3.33,
        462.95,
        3009.09,
        904.93,
        202.4,
        1.97,
        -52.83,
        null,
      ],
    ],
    yAxis: [
      {
        title: "Main Steam Press.",
        plot: [
          {
            value: "Main Steam Press.",
            connectnulldata: true,
            style: {
              plot: {
                "stroke-dasharray": "5 2",
              },
            },
          },
        ],
        referenceLine: [],
        format: { suffix: "MPa", defaultFormat: 0, round: "1" },
        type: "line",
        orientation: "left",
      },
      {
        title: "Gross Output",
        plot: [{ value: "Gross Output", connectnulldata: true }],
        referenceLine: [],
        format: { suffix: "MW", defaultFormat: 0, round: "1" },
        style: {
          title: { "font-size": "10px" },
          "plot.null": {
            "stroke-dasharray": "5",
          },
        },
        type: "line",
        orientation: "left",
      },
      {
        title: "ST Speed",
        plot: [
          {
            value: "ST Speed",
            connectnulldata: true,
            style: {
              plot: {
                "stroke-dasharray": "5 2",
              },
            },
          },
        ],
        referenceLine: [],
        format: { suffix: "rpm", defaultFormat: 0, round: "1" },
        style: { title: { "font-size": "10px" } },
        type: "line",
        orientation: "left",
      },
      {
        title: "Oil Flow",
        plot: [
          {
            value: "Coal Flow",
            connectnulldata: false,
            style: {
              title: { "font-size": "10px" },
            },
          },
          { value: "Oil Flow", connectnulldata: false },
        ],
        referenceLine: [],
        format: { suffix: "ton/h", defaultFormat: 0, round: "1" },
        style: {
          title: { "font-size": "10px" },
        },
        type: "line",
        orientation: "right",
      },
      {
        title: "Condenser Vacuum",
        plot: [{ value: "Condenser Vacuum", connectnulldata: true }],
        referenceLine: [],
        format: { suffix: "kPa", defaultFormat: 0, round: "1" },
        style: { title: { "font-size": "10px" } },
        type: "line",
        orientation: "right",
      },
      {
        title: "ST Metal Temperature",
        plot: [
          { value: "HP Turbine First Stage Temp.", connectnulldata: true },
          { value: "Main Steam Temp.", connectnulldata: true },
          { value: "Furnace Temperature", connectnulldata: true },
          { value: "ST Metal Temperature", connectnulldata: true },
          { value: "Main Steam Temp. (Ref) ", connectnulldata: true },
        ],
        referenceLine: [],
        format: { suffix: "°C", defaultFormat: 0, round: "1" },
        style: { title: { "font-size": "10px" } },
        type: "line",
        orientation: "right",
      },
    ],
    xAxis: {
      plot: "Time",
      timemarker: [
        {
          start: "2023-03-01 14:20:00",
          startformat: "%Y-%m-%d %H:%M:%S",
          type: "full",
          label: "Start Oil <br> Oil Flow : 2.14 ton/h",
          style: { marker: { fill: "#cf1322" } },
        },
        {
          start: "2023-03-01 14:20:00",
          startformat: "%Y-%m-%d %H:%M:%S",
          type: "full",
          label: "ST Roll <br> ST Speed : 3010.01 rpm",
          style: { marker: { fill: "#d46b08" } },
        },
        {
          start: "2023-03-01 14:20:00",
          startformat: "%Y-%m-%d %H:%M:%S",
          type: "full",
          label: "ST Sync <br> Gross Output : 2.83 MW",
          style: { marker: { fill: "#faad14" } },
        },
        {
          start: "2023-03-01 14:20:00",
          startformat: "%Y-%m-%d %H:%M:%S",
          type: "full",
          label: "Start Coal <br> Coal Flow : 7.25 ton/h",
          style: { marker: { fill: "#7cb305" } },
        },
        {
          start: "2023-03-01 14:35:00",
          startformat: "%Y-%m-%d %H:%M:%S",
          type: "full",
          label: "Stop Oil & Period End <br> Oil Flow : 1.97 ton/h",
          style: { marker: { fill: "#08979c" } },
        },
        {
          start: "2023-03-01 14:35:00",
          startformat: "%Y-%m-%d %H:%M:%S",
          type: "full",
          label: "Power Min Load <br> Gross Output : 3.37 MW",
          style: { marker: { fill: "#096dd9" } },
        },
      ],
    },
    datamarker: [
      {
        value: "Oil Flow",
        time: "2023-03-01 14:20:00",
        timeformat: "%Y-%m-%d %H:%M:%S",
        identifier: "A",
        style: { marker: "#0099ff", text: "#0099ff" },
        tooltext: "Start Oil <br> Oil Flow : 2.14 ton/h",
      },
      {
        value: "ST Speed",
        time: "2023-03-01 14:20:00",
        timeformat: "%Y-%m-%d %H:%M:%S",
        identifier: "B",
        style: { marker: "#ff0000", text: "#ff0000" },
        tooltext: "ST Roll <br> ST Speed : 3010.01 rpm",
      },
      {
        value: "Gross Output",
        time: "2023-03-01 14:20:00",
        timeformat: "%Y-%m-%d %H:%M:%S",
        identifier: "C",
        style: { marker: "#722ed1", text: "#722ed1" },
        tooltext: "ST Sync <br> Gross Output : 2.83 MW",
      },
      {
        value: "Coal Flow",
        time: "2023-03-01 14:20:00",
        timeformat: "%Y-%m-%d %H:%M:%S",
        identifier: "D",
        style: { marker: "#7F9CF5", text: "#7F9CF5" },
        tooltext: "Start Coal <br> Coal Flow : 7.25 ton/h",
      },
      {
        value: "Oil Flow",
        time: "2023-03-01 14:35:00",
        timeformat: "%Y-%m-%d %H:%M:%S",
        identifier: "F",
        style: { marker: "#B794F4", text: "#B794F4" },
        tooltext: "Stop Oil & Period End <br> Oil Flow : 1.97 ton/h",
      },
      {
        value: "Gross Output",
        time: "2023-03-01 14:35:00",
        timeformat: "%Y-%m-%d %H:%M:%S",
        identifier: "G",
        style: { marker: "#F687B3", text: "#F687B3" },
        tooltext: "Power Min Load <br> Gross Output : 3.37 MW",
      },
    ],
  },
  message: "Success",
  total: 1,
  limit: 1,
  page: 0,
};
 

Comments