最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

mxgraph - How to apply grid lines to graph? - Stack Overflow

programmeradmin5浏览0评论

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;
发布评论

评论列表(0)

  1. 暂无评论