# Zkfiddle Chart

gualberto
3 1

Hi guys,

I'm trying to learn zkoss using the zkfiddle.org, but I can't use the zkcharts. Is it possible test charting in the fiddle?

Thanks!

delete retag edit

Sort by » oldest newest most voted

cor3000
5399 2 7

right now, the zkcharts.jar is not deployed to zkfiddle.org

so trying to add a charts component ...

<zk>
<charts title="my chart"/>
</zk>


... will result in this error message:

org.zkoss.zk.ui.metainfo.DefinitionNotFoundException: file:/tmp/reso...689tmp/1fcgq49/0/index.zul:2:11: Component definition not found: charts in [LanguageDefinition: xul/html]

Since you are 'learning' ZK, there's one positive aspect: You just learned what kind of error message you get when trying to use a component which is unavailable in the project dependencies (i.e. the zkcharts.jar is missing). You get the same error for an incorrectly typed component name e.g. <tabox> instead of the correct <tabbox> (so it doesn't always mean a jar is missing, might just be a typo).

Since the code auto completion (in zkfiddle) suggests the <charts>-component to be available, I posted a Bug to consider fixing this by adding the zkcharts.jar dependency to zkfiddle ->ZKFIDDLE-2

For your further testing I suggest running a zk project locally (which you'll do eventually anyway). Add the zkcharts dependency manually and use it locally:

https://www.zkoss.org/wiki/ZKChartsEssentials/GettingStartedwithZKCharts

gualberto
3 1

[hide preview]