Coder Social home page Coder Social logo

googlechartwrapper's People

Watchers

 avatar

googlechartwrapper's Issues

GridLine - step format

Function CutNumber round badly float numbers.

Use GridLineBuilder constructor with value 9.0909

example new GridLine.GridLineBuilder(9.0909, 10);

Result for graph is 9, but should be at least 9.09.

You should preserve at least 2 places after point.

Solution could be

NumberFormat numberFormatClone = (NumberFormat) numberFormatEnglish.clone();// 
english format for point (czech format has comma)

// placesMin and placesMax could be as parameter or configuration
numberFormatClone.setMinimumFractionDigits(placesMin);
numberFormatClone.setMaximumFractionDigits(placesMax);

// result
return numberFormatClone.format(number);

placesMin and placesMax = 2, formats 9.0909 as 9.09.

Jiří (CZ)



Original issue reported on code.google.com by [email protected] on 29 Oct 2010 at 2:35

Separator for extended encoding of series should be comma

What steps will reproduce the problem?

Create an XYLineChart with a pair of series and generate URL.


What is the expected output? What do you see instead?

Expected comma for series separator in extended encoding set but get pipe.


What version of the product are you using? On what operating system?

svn trunk

Please provide any additional information below.

Patch attached.


Producing an XYImageLine chart generates invalid URL due to handling of 
auto and extended encoding.  Problem is two-fold:

1. Auto encoding for collections uses separator defined for Auto encoding 
and not the encoder for the appropriate type;
2. Extended encoding should be comma separated as per Google data format 
spec:

http://code.google.com/apis/chart/formats.html#extended

"A string where each two characters is a data point, and each series is 
delimited by a comma."

Original issue reported on code.google.com by [email protected] on 30 Jan 2010 at 6:56

Attachments:

GridLine ignores blank line value and produces sub-optimal URL encoding

What steps will reproduce the problem?

plot.setGridLine(new GridLine.GridLineBuilder(30, 15).segment(12, 
2).offset(25, 25).build());

Produces:

chg=30.0,15.0,12.0,12.0,25.0,25.0

length blank segment value is 2 not 12.  Also, where a float is ".0" then 
there is no point having this extra load on the URL.

What is the expected output? What do you see instead?

Corrected and improved output:

chg=30,15,12,2,25,25

What version of the product are you using? On what operating system?

svn trunk

Please provide any additional information below.

Patch attached - I've corrected the length blank issue and ammended 
GridLine.CutSample to optimise the ".0" case.

Original issue reported on code.google.com by [email protected] on 31 Jan 2010 at 12:49

Attachments:

Love the wrapper - unfortunately won't work with GAE apps...

I would guess that this is WAY too big for a issue, but just wanted to
deliver a heads-up that since Google App Engine doesn't whitelist the vast
majority of java.awt.*, and this library uses certain classes extensively
(Dimension, Color, etc), this library can't be used in a GAE environment. 
While it would be great if this library could be used without the AWT
classes, this is more to ask you to add your weight to the issues marked
"please whitelist java.awt.*" to the GAE forums...

To Reproduce:
Try to create any chart in a GAE environment

Original issue reported on code.google.com by [email protected] on 29 Apr 2010 at 4:38

Common errors

What steps will reproduce the problem?

I identify two problems.

1.
Can't add two independed data lines to line chart.
See LineChartDataAppender on line 169 and replace comma by pipe.
Probles is solved.

2.
Issue is with encoding char title or legend labels. There is a problem with
spaces. Solution is to replace space with + (by google rules).





Original issue reported on code.google.com by [email protected] on 25 Apr 2010 at 12:32

data point marker improvements

New annotation marker added (chm=A)
New error bar marker added (chm=E)
New horizontal line fixed to a specific point (chm=H)
New box charts, also called box plots
Now support commas in the text string
Anchor placement now available for data value markers

Original issue reported on code.google.com by [email protected] on 11 Apr 2010 at 12:53

No way to specify line axis

What steps will reproduce the problem?

See attached code RenderSparkChart.java

As the library currently stands, you'll need to comment out the lines on the 
axis style that set line styles. 

This produces a URL that when rendered contains axis lines.


What is the expected output? What do you see instead?

Current:

http://chart.apis.google.com/chart?cht=lxy&chs=70x40&chco=0077cc&chd=e:DWGuKHNgQ
5USXrbEech1lOonsAvZyx2K5j88..,9cj.WCWbtapctvjSmRmR2fvtagz78MhOejoG8o&chf=bg,s,ff
ffff00&chls=1.0,0.0,0.0&chxl=0:||1:|&chxs=0,000000,1,0,lt|1,000000,1,0,lt&chxt=x
,y


Expected:

http://chart.apis.google.com/chart?cht=lxy&chs=70x40&chco=0077cc&chd=e:DWGuKHNgQ
5USXrbEech1lOonsAvZyx2K5j88..,9cj.WCWbtapctvjSmRmR2fvtagz78MhOejoG8o&chf=bg,s,ff
ffff00&chls=1.0,0.0,0.0&chxl=0:||1:|&chxs=0,000000,1,0,_|1,000000,1,0,_&chxt=x,y



What version of the product are you using? On what operating system?

revision 189.

Please provide any additional information below.


A patch has been attached to allow specification of line style which when used 
with RenderSparkChart will produce the expected spark chart.

(I'm sure this used to be available at some point in the past!)

Original issue reported on code.google.com by [email protected] on 13 Feb 2011 at 12:17

Attachments:

-1 should be encoded using double underscore

What steps will reproduce the problem?

    @Test
    public void testMissingValue() {
        final int[] series = new int[] { 19, -1, 20 };

        final IEncoder encoder = 
EncoderFactory.getEncoder(EncodingType.ExtendedEncoding);

        final String encoded = encoder.encode(series);

        Assert.assertEquals("e:AT__AU", encoded);
    }

What is the expected output? What do you see instead?

org.junit.ComparisonFailure: expected:<e:AT_[_]AU> but was:<e:AT_[]AU>

Expect double underscore encoding for -1 value, but get single char which 
is against the data format spec:

http://code.google.com/apis/chart/formats.html#extended

Missing values are indicated with a double underscore (__).


What version of the product are you using? On what operating system?

svn trunk

Please provide any additional information below.

Patch attached for JUnit test and fix.

Original issue reported on code.google.com by [email protected] on 30 Jan 2010 at 5:30

Attachments:

Application fails to Deploy in GlassFish4 due to invalid class-path entry in manifest.mf

Deploing an application with googlechartwrapper.jar on GlassFish4 will result 
in  

java.io.FileNotFoundException: FOO\lib\lib\swingx-0.9.0.jar (The system cannot 
find the path specified)
    at java.util.zip.ZipFile.open(Native Method)


What does it have to do with it? Is the swingx jar necessary? or can it be 
removed from Manifest.mf ? 

If i remove it- its working. Please bring it into an offical release. Its 
better than having to used a manually patched jar

Thanks

Original issue reported on code.google.com by [email protected] on 4 Feb 2014 at 10:48

RangeMarker causes crash when transparent

What steps will reproduce the problem?
1. Create a RangeMarker with a transparent Color, eg, new Color(255, 255, 255, 
0)
2. Assign this Range Marker to a chart
3. Attempt to generate the URL for the chart

What is the expected output? What do you see instead?
A Range Marker with transparent colouring is expected - instead the application 
crashes with an index out of bounds error in the getAppendableFeatures method 
of RangeMarker

What version of the product are you using? On what operating system?
Using version 1.1 of the googlechartwrapper on Windows 7

Please provide any additional information below.
This is caused by the same problem as issue #22.  The only difference is that 
in the case of issue #22 , the code is trying to cater for transparency, but 
fails.  In the case of the Range Marker, if the code worked it would not add 
transparency when required, however the root cause of the crash is the same.  
The fix for #22 needs to be applied to RangeMarker to prevent the crash and add 
transparency.

Original issue reported on code.google.com by [email protected] on 21 Feb 2012 at 9:09

Color.getMatchingColorHexValue - causes Exception and contains System.out.println

What steps will reproduce the problem?

de.toolforge.googlechartwrapper.Color c = new 
de.toolforge.googlechartwrapper.Color(255, 255, 255, 0);

String rgba = c.getMatchingColorHexValue();

Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String 
index out of range: 8
    at java.lang.String.substring(Unknown Source)
    at de.toolforge.googlechartwrapper.Color.getEightCharacterHexValue(Color.java:175)
    at de.toolforge.googlechartwrapper.Color.getMatchingColorHexValue(Color.java:234)
    at com.thunderingherd.incubator.chart.Test.main(Test.java:12)


What is the expected output? What do you see instead?

No exception and no output to std out.


What version of the product are you using? On what operating system?

revision 189, Win 7.


Please provide any additional information below.

As a work around, I replaced getEightCharacterHexValue with the following:

    public String getEightCharacterHexValue() {
        return String.format("%02x%02x%02x%02x", red, green, blue, alpha);
    }

Original issue reported on code.google.com by [email protected] on 13 Feb 2011 at 11:52

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.