我需要动态更改图例标签,当我找不到像chart.legend.setLabels()
我试过这个
chart.legend.allItems[0].name = 'bla bla'
chart.legend.redraw()
什么都没发生
尝试更改选项
chart.options.legend.labels[0].name = 'bla bla'
chart.redraw()
什么都没发生
那么有没有办法改变传奇标签的名称?
答案 0 :(得分:11)
答案 1 :(得分:1)
您也可以使用
<assembly>
<id>dist</id>
<formats>
<format>zip</format>
</formats>
<files>
<file>
<source>target/${project.artifactId}.jar</source>
<outputDirectory>/</outputDirectory>
</file>
<file>
<source>data/input/docId.txt</source>
<outputDirectory>data/input/</outputDirectory>
</file>
<file>
<source>data/export/exported_files_will_be_created_here.txt</source>
<outputDirectory>data/export/</outputDirectory>
</file>
<file>
<source>src/main/resources/dfc.properties</source>
<outputDirectory>/</outputDirectory>
</file>
<file>
<source>src/main/resources/dfc.keystore</source>
<outputDirectory>/</outputDirectory>
</file>
</files>
<fileSets>
<fileSet>
<directory>${project.basedir}</directory>
<includes>
<include>*.cmd</include>
<include>README.pdf</include>
</includes>
<useDefaultExcludes>true</useDefaultExcludes>
</fileSet>
</fileSets>