XY Chart change grid settings

Good morning,
I'm using an XY Chart in Perspective, I wonder if and how could be reach the result of setting a different line width and dashArray of the grid as shown in the attached image

Thank you

Do you want to increase the width of grid?

I would like to increase the width of the grid only on specific rows as shown in the image, this could allowed me to "separate" some items.

You can't modify the grid. But you could add additional straight line plots and set the style as required. For an XY Chart you only need to supply two points for each line - left and right.
You might need to order the plots in the correct sequence so that the "grid" plots are behind the data plots.

I'm not sure I understood correctly—are you saying to add new points in order to create a straight line? In that case, isn't having a configuration like the one in the attached photo a problem? Right now I'm creating horizontal columns serie, so if I were to create two points, wouldn't they start from the hypothetical center of the column instead of overlapping the grid?

Post the formatted chart component JSON for your question and annotate your image so we know exactly what you're trying to achieve. That way we can copy and reproduce your configuration and edit it. Please see Wiki - how to post code on this forum.

Next week I will provide a JSON example, thanks for the help and have a nice weekend.

Good morning guys, this is the JSON that I'm using now.

[
  {
    "type": "ia.chart.xy",
    "version": 0,
    "props": {
      "title": {
        "appearance": {
          "font": {
            "size": "20px",
            "weight": 1
          },
          "padding": {
            "bottom": 5
          }
        }
      },
      "legend": {
        "enabled": false,
        "labels": {
          "text": ""
        }
      },
      "cursor": {
        "series": "Rotture",
        "lineX": {
          "stroke": {
            "color": "#5CA1F5",
            "opacity": 1,
            "dashArray": "''"
          }
        },
        "lineY": {
          "stroke": {
            "color": "#5CA1F5",
            "opacity": 1,
            "dashArray": "\""
          }
        }
      },
      "enableTransitions": true,
      "scrollBars": {
        "horizontal": {
          "enabled": false,
          "series": "Rotture"
        },
        "vertical": {
          "enabled": false,
          "series": "Rotture"
        }
      },
      "selection": {
        "enabled": true,
        "selectedHighlightColor": "black"
      },
      "background": {
        "render": "color",
        "color": "#666666"
      },
      "xAxes": [
        {
          "name": "xAxis",
          "label": {
            "enabled": false,
            "text": "Time",
            "color": ""
          },
          "visible": true,
          "tooltip": {
            "enabled": true,
            "text": "",
            "cornerRadius": 3,
            "pointerLength": 4,
            "background": {
              "color": "",
              "opacity": 1
            }
          },
          "inversed": false,
          "render": "date",
          "category": {
            "break": {
              "enabled": false,
              "startCategory": "",
              "endCategory": "",
              "size": 0.05
            }
          },
          "date": {
            "baseInterval": {
              "enabled": true,
              "timeUnit": "minute",
              "count": 1,
              "skipEmptyPeriods": false
            },
            "range": {
              "max": 1750676400000,
              "min": 1750647600000,
              "useStrict": true
            },
            "break": {
              "enabled": false,
              "startDate": "",
              "endDate": "",
              "size": 0.05
            },
            "inputFormat": "yyyy-MM-dd HH:mm:ss",
            "format": "HH:mm d/M"
          },
          "value": {
            "range": {
              "max": "",
              "min": "",
              "useStrict": false
            },
            "logarithmic": false,
            "break": {
              "enabled": false,
              "startValue": 0,
              "endValue": 100,
              "size": 0.05
            },
            "format": "#,###.##"
          },
          "appearance": {
            "opposite": false,
            "inside": false,
            "labels": {
              "color": "white",
              "opacity": 0.8,
              "rotation": 0,
              "verticalCenter": "middle",
              "horizontalCenter": "middle",
              "wrap": true
            },
            "grid": {
              "color": "white",
              "opacity": 0.3,
              "dashArray": "",
              "minDistance": 90,
              "position": 0
            },
            "font": {
              "size": "15px",
              "weight": 0,
              "textAlign": "center"
            }
          }
        }
      ],
      "yAxes": [
        {
          "name": "yAxis",
          "label": {
            "enabled": false,
            "text": "",
            "color": ""
          },
          "visible": true,
          "tooltip": {
            "enabled": true,
            "text": "",
            "cornerRadius": 3,
            "pointerLength": 4,
            "background": {
              "color": "",
              "opacity": 1
            }
          },
          "inversed": true,
          "render": "category",
          "category": {
            "break": {
              "enabled": false,
              "startCategory": "",
              "endCategory": "",
              "size": 0.05
            }
          },
          "date": {
            "baseInterval": {
              "enabled": false,
              "timeUnit": "hour",
              "count": 1,
              "skipEmptyPeriods": false
            },
            "range": {
              "max": "",
              "min": "",
              "useStrict": false
            },
            "break": {
              "enabled": false,
              "startDate": "",
              "endDate": "",
              "size": 0.05
            },
            "inputFormat": "yyyy-MM-dd kk:mm:ss",
            "format": "M/d/yyyy HH:mm:ss"
          },
          "value": {
            "range": {
              "max": "",
              "min": "",
              "useStrict": false
            },
            "logarithmic": false,
            "break": {
              "enabled": false,
              "startValue": 0,
              "endValue": 100,
              "size": 0.05
            },
            "format": "#,###.##"
          },
          "appearance": {
            "opposite": false,
            "inside": false,
            "labels": {
              "color": "white",
              "opacity": 0.8,
              "rotation": 0,
              "verticalCenter": "middle",
              "horizontalCenter": "middle",
              "wrap": true
            },
            "grid": {
              "color": "white",
              "opacity": 0.1,
              "dashArray": "4.4",
              "minDistance": 0,
              "position": 0
            },
            "font": {
              "size": "14px",
              "weight": 0,
              "textAlign": "left"
            }
          }
        }
      ],
      "series": [
        {
          "candlestick": {
            "appearance": {
              "deriveFieldsFromData": {
                "fill": {
                  "color": "",
                  "opacity": ""
                },
                "stroke": {
                  "color": "",
                  "opacity": "",
                  "width": ""
                }
              },
              "fill": {
                "color": "",
                "opacity": 1
              },
              "heatRules": {
                "dataField": "",
                "enabled": false,
                "max": "",
                "min": ""
              },
              "stacked": false,
              "stroke": {
                "color": "",
                "opacity": 1,
                "width": 1
              }
            },
            "high": {
              "x": "",
              "y": ""
            },
            "low": {
              "x": "",
              "y": ""
            },
            "open": {
              "x": "",
              "y": ""
            }
          },
          "column": {
            "appearance": {
              "deriveFieldsFromData": {
                "fill": {
                  "color": "colore_colonna",
                  "opacity": ""
                },
                "stroke": {
                  "color": "colore_bordo_colonna",
                  "opacity": "",
                  "width": "spessore_bordo_colonna"
                }
              },
              "fill": {
                "color": "#000000",
                "opacity": 1
              },
              "heatRules": {
                "dataField": "",
                "enabled": false,
                "max": "#C30909",
                "min": "#B0BB2D"
              },
              "height": 44,
              "stacked": false,
              "stroke": {
                "color": "#000000",
                "opacity": 1,
                "width": 1
              },
              "width": 0
            },
            "open": {
              "x": "fromDate",
              "y": ""
            }
          },
          "columns": {
            "template": {
              "column": {
                "cornerRadiusBottomLeft": "3px",
                "cornerRadiusBottomRight": "3px",
                "cornerRadiusTopLeft": "3px",
                "cornerRadiusTopRight": "3px"
              }
            }
          },
          "data": {
            "source": "Rotture",
            "x": "toDate",
            "y": "labelYaxis"
          },
          "defaultState": {
            "visible": true
          },
          "hiddenInLegend": false,
          "label": {
            "text": ""
          },
          "line": {
            "appearance": {
              "bullets": [
                {
                  "deriveFieldsFromData": {
                    "fill": {
                      "color": "",
                      "opacity": ""
                    },
                    "rotation": "",
                    "stroke": {
                      "color": "",
                      "opacity": "",
                      "width": ""
                    }
                  },
                  "enabled": false,
                  "fill": {
                    "color": "",
                    "opacity": 1
                  },
                  "heatRules": {
                    "dataField": "",
                    "enabled": false,
                    "max": 100,
                    "min": 2
                  },
                  "height": 10,
                  "label": {
                    "position": {
                      "dx": 0,
                      "dy": 0
                    },
                    "text": "{value}"
                  },
                  "render": "circle",
                  "rotation": 0,
                  "stroke": {
                    "color": "",
                    "opacity": 1,
                    "width": 1
                  },
                  "tooltip": {
                    "background": {
                      "color": "",
                      "opacity": 1
                    },
                    "cornerRadius": 3,
                    "enabled": true,
                    "pointerLength": 4,
                    "text": "{name}: [bold]{valueY}[/]"
                  },
                  "width": 10
                }
              ],
              "connect": true,
              "fill": {
                "color": "",
                "opacity": 0
              },
              "minDistance": 0.5,
              "stroke": {
                "color": "",
                "dashArray": "",
                "opacity": 1,
                "width": 3
              },
              "tensionX": 1,
              "tensionY": 1
            },
            "open": {
              "x": "",
              "y": ""
            }
          },
          "name": "Rotture",
          "render": "column",
          "stepLine": {
            "appearance": {
              "bullets": [
                {
                  "deriveFieldsFromData": {
                    "fill": {
                      "color": "",
                      "opacity": ""
                    },
                    "rotation": "",
                    "stroke": {
                      "color": "",
                      "opacity": "",
                      "width": ""
                    }
                  },
                  "enabled": true,
                  "fill": {
                    "color": "",
                    "opacity": 1
                  },
                  "heatRules": {
                    "dataField": "",
                    "enabled": false,
                    "max": 100,
                    "min": 2
                  },
                  "height": 10,
                  "label": {
                    "position": {
                      "dx": 0,
                      "dy": 0
                    },
                    "text": "{value}"
                  },
                  "render": "circle",
                  "rotation": 0,
                  "stroke": {
                    "color": "",
                    "opacity": 1,
                    "width": 1
                  },
                  "tooltip": {
                    "background": {
                      "color": "",
                      "opacity": 1
                    },
                    "cornerRadius": 3,
                    "enabled": true,
                    "pointerLength": 4,
                    "text": "{name}: [bold]{valueY}[/]"
                  },
                  "width": 10
                }
              ],
              "connect": true,
              "fill": {
                "color": "",
                "opacity": 0
              },
              "minDistance": 0.5,
              "stroke": {
                "color": "",
                "dashArray": "",
                "opacity": 1,
                "width": 3
              },
              "tensionX": 1,
              "tensionY": 1
            },
            "open": {
              "x": "",
              "y": ""
            }
          },
          "tooltip": {
            "background": {
              "color": "",
              "opacity": 1
            },
            "cornerRadius": 3,
            "enabled": true,
            "pointerLength": 4,
            "text": ""
          },
          "visible": false,
          "xAxis": "xAxis",
          "yAxis": "yAxis",
          "zIndex": 0
        }
      ],
      "style": {
        "fontFamily": "Noto Sans",
        "overflow": "hidden"
      },
      "dataSources": {
        "Rotture": [
          {
            "toDate": "",
            "fromDate": "",
            "labelYaxis": "T1"
          },
          {
            "toDate": "",
            "fromDate": "",
            "labelYaxis": "T2"
          },
          {
            "toDate": {
              "$": [
                "ts",
                192,
                1750657977938
              ],
              "$ts": 1750657921047
            },
            "fromDate": {
              "$": [
                "ts",
                192,
                1750657977938
              ],
              "$ts": 1750655520987
            },
            "labelYaxis": "T3"
          },
          {
            "toDate": {
              "$": [
                "ts",
                192,
                1750657977938
              ],
              "$ts": 1750648380937
            },
            "fromDate": {
              "$": [
                "ts",
                192,
                1750657977938
              ],
              "$ts": 1750647721093
            },
            "labelYaxis": "T4"
          }
        ]
      }
    },
    "meta": {
      "name": "XYChart"
    },
    "position": {
      "basis": "320px"
    },
    "custom": {}
  }
]
1 Like