Sorry, it was an mysql mistake. Forgot it.
2008/12/23 Raul Mateos <raulofpand...@gmail.com>: > Hello! > > I'm using ezcomponents 2008.2rc under Ubuntu. All works OK, but I'm > not able to get the correct colours in palette: > > I have defined my own palette, and I try to create a new > ezcGraphPieChart graphic. I can do using: > > $charttcp = new ezcGraphPieChart(); > $charttcp->driver = new ezcGraphGdDriver(); > $charttcp->palette = new customPalette(); > $charttcp->title = 'TCP services usage statistics'; > $charttcp->options->label = '%2$d (%3$.1f%%)'; > $charttcp->options->font = 'images/font.ttf'; > $charttcp->options->percentThreshold = 0.01; > $charttcp->legend = true; > > $charttcp->data['TCPconnections'] = new ezcGraphDatabaseDataSet( > $statement, > array( > ezcGraph::KEY => 'portdst', > ezcGraph::VALUE => 'total', > ) > ); > > $charttcp->render( 600, 400, 'tmpimages/protocol_tcp_utilization.png' > ); > > and customPalette() has the data set color: > > protected $dataSetColor = array( > '#336699', > '#2244aa', > '#1199ff', > '#3300ff', > '#8866ff', > '#a613ca', > '#b923da', > '#dd33cf', > '#66aaff', > '#54a6aa', > '#d3474a', > '#ff9900', > '#49aa00', > '#55bb34', > '#119900', > '#b3474a', > '#ffbb99', > '#cf9930', > '#c5bb34', > '#ecd9df', > '#dd1f4a', > ); > > I get the graph, but not the same colours I want, according with the palette. > > I attach one screeenshot that includes the result and the content of > the palette. > > Thanks in advance, > > Raul > -- Components mailing list Components@lists.ez.no http://lists.ez.no/mailman/listinfo/components