1

12などの円グラフのスタイル設定に CSS のプロパティを使用する方法

.pie {
          position: absolute;
          width: 100px;
          height: 100px;
          -moz-border-radius: 50px;
          -webkit-border-radius: 50px;
          -o-border-radius: 50px;
          border-radius: 50px;
          clip: rect(0px, 50px, 100px, 0px);
     }
     .hold {
          position: absolute;
          width: 100px;
          height: 100px;
          -moz-border-radius: 50px;
          -webkit-border-radius: 50px;
          -o-border-radius: 50px;
          border-radius: 50px;
          clip: rect(0px, 100px, 100px, 50px);
     }
     #pieSlice1 .pie {
          background-color: #1b458b;
          -webkit-transform:rotate(50deg);
          -moz-transform:rotate(50deg);
          -o-transform:rotate(50deg);
          transform:rotate(50deg);
     } 

Cytoscape.jsによって構築されたスタイル ノードの CSS3 では?

私はすでに次のコードを試しました..

style: cytoscape.stylesheet()
.selector("node")
.css({
"content": "data(name)", 
"shape": "data(shape)",
"border-width": 1,
"background-color": "data(color)",
"-webkit-transform":"rotate(140deg)",
"-moz-transform":"rotate(140deg)",
"-o-transform":"rotate(140deg)",
"transform":"rotate(140deg)",
"border-color": "#555",
"height": "data(weight)",
"width": "data(weight)"
})
...

しかし、 cytoscpe.js ドキュメントのために互換性がないようです

だから私はどういうわけか各ノードで円グラフを作成する必要があり、利用可能な解決策はありますか? 前もって感謝します。

4

1 に答える 1

1

別の質問で述べたように、これは計画された機能です。

https://github.com/cytoscape/cytoscape.js/issues/283

于 2013-06-13T13:23:29.150 に答える