From Dark and Darker Wiki

No edit summary
m (Support xAxisTitle and yAxisTitle params)
 
Line 10: Line 10:
   var axisColor = '<!--{$axisColor|escape:'quotes'}-->';
   var axisColor = '<!--{$axisColor|escape:'quotes'}-->';
   var fontColor = '<!--{$fontColor|escape:'quotes'}-->';
   var fontColor = '<!--{$fontColor|escape:'quotes'}-->';
  var xAxisTitle = '<!--{$xAxisTitle|escape:'quotes'}-->';
  var yAxisTitle = '<!--{$yAxisTitle|escape:'quotes'}-->';
    
    
   if (color == "") {
   if (color == "") {
Line 64: Line 66:
       scales: {
       scales: {
         y: {
         y: {
          title: {
            display: yAxisTitle !== "",
            text: yAxisTitle,
            color: fontColor
          },
           grid: {
           grid: {
             color: gridColor
             color: gridColor
Line 76: Line 83:
         x: {
         x: {
           type: 'linear',
           type: 'linear',
          title: {
            display: xAxisTitle !== "",
            text: xAxisTitle,
            color: fontColor
          },
           grid: {
           grid: {
             color: gridColor
             color: gridColor

Latest revision as of 15:36, 18 July 2026