I'm trying to apply grid lines in my mxGraph
, but it isn't working. Can you help me figure out where I am going wrong?
These are the grid lines I want to show:
This is my code
this.mxEditor = new mx.mxEditor('assets/mxgraph/config/keyhandler-commons.xml');
this.mxEditor.setGraphContainer(graphContainer);
this.mxGraph = (this.mxEditor as any).graph;
this.mxGraph.setGridEnabled(true);
this.mxGraph.gridSize = 5;
(this.mxGraph.view as any).gridColor = 'DF2A2A';
(this.mxGraph.view as any).gridImage = null;