Extension talk:PChart4mw

Welcome to the talk-page of pchart4mw. Discussions can be done on this page.

Integration with Semantic MediaWiki (SMW)
Hi Thank you for this extension, really nice. I want to ask if there's a plan of integrating this to SMW? This is way better than the Semantic result format graph format (google)  printer

Gérard 18:58, 2 December 2009 (UTC) We're glad to hear from you and that you're pleased with the extension. We have no plans in that direction, at least not yet.


 * I'd also appreciate efforts towards integration with SMW!! - Bernhard

We have released a new version of pchart4mw (version 1.1.0 on June 11th 2010). This version of pchart4mw can now be used as parser function. This enables integrating pchart4mw's charting capabilities with other extensions like Semantic MediaWiki (SMW).

Now we have a question (request) to you. Could you share your experience integrating pchart4mw with SMW? Both here and if possible with the SMW community to direct others to these new possibilities? Gérard 08:10, 11 June 2010 (UTC)
 * This is an awesome release, I haven't tried it yet but I was using Pchart4mw w/SMW since its first release by setting the query result to a variable:

 ,, savings: , 

Now this will be more easier and more better.

cheers Msevero

Thank you for your response, please let us know if this new version works as expected with SMW. If your site is a public site we'd appreciate a link as well. Gérard 05:12, 13 June 2010 (UTC)

Large Dataset Line Graphs
Nice extension, thanks for adding it. Using the pChart classes gives much more swishy renders than using GnuPlot. There is one problem I have not been able to solve for my planned implementation though. When trying to create a line graph with a large amount of data, e.g.:

the x-axis labels become overlaid ontop of each other until all you get is a grey line - i.e. there is no setting to say "show 5 x labels", giving me just "0, 100, 200, 300, 400, 500", on the x-axis. The extension seems to be hardwired to show every x-label as it has been entered in to the data.

This is a bit of a show-stopper for me as I need to plot 500+ point datasets as line graphs with useable x-axis ticks. At the moment I am going to have to stick with GnuplotBasic as it has the configuration to do that. Have I missed some obvious control parameter or is this not yet possible with PC4MW? MLCT 15:36, 6 June 2010 (UTC)

Hello, We will look in to this, don't know if the pChart library supports this option. Gérard 03:58, 8 June 2010 (UTC)

Decimals ignored in axis labels
Hi, I'm having a problem where the labels for the y-axis are not showing up properly when I use floating point values.

 0.1 0.2 0.3 0.4 0.5 

With the specified code above, the labels for the y-axis come out like this: http://img15.imageshack.us/f/33312048.png/

1.17 Error
Hi guys,

MW1.17, XAMPP on Windows 2003 Server, I'm getting the following if I add a chart on a wiki page:

"''Warning: require(C:\xampp\htdocs\wiki\extensions\pChart4mw/pChart/pChart.class) [function.require]: failed to open stream: No such file or directory in C:\xampp\htdocs\wiki\includes\AutoLoader.php on line 679""

""Fatal error: require [function.require]: Failed opening required 'C:\xampp\htdocs\wiki\extensions\pChart4mw/pChart/pChart.class' (include_path='C:\xampp\htdocs\wiki;C:\xampp\htdocs\wiki/includes;C:\xampp\htdocs\wiki/languages;.;C:\xampp\php\PEAR') in C:\xampp\htdocs\wiki\includes\AutoLoader.php on line 679''"

Now, my LocalSettings.php has:

'# pChart location $wgPChart4mwPChartPath = "$IP\extensions\pChart4mw\pChart";

$wgPChart4mwCacheDir = "$IP\extensions\images\pChart4mw";
 * 1) pChart raster cache

require_once( "$IP/extensions/pChart4mw/pChart4mw.php" );
 * 1)  pChart4mw install

Any ideas what I've done wrong here?

137.191.224.102 10:53, 15 June 2010 (UTC)


 * gah, scratch that. pChart had extracted into pChart/pChart/, fixed by copying the .class files up one level 137.191.224.102 16:57, 15 June 2010 (UTC)