Code Monkey home page Code Monkey logo

charts4j's People

Contributors

julienchastang avatar sprehn avatar

Watchers

 avatar

charts4j's Issues

DataUtil scaling produces negative values

What steps will reproduce the problem?
1. Just use this  line of code, and look at the result.
DataUtil.scaleWithinRange(10, 99, new double[] {3, 6, 1, 6, 6})

What is the expected output? What do you see instead?
I expect a list of values between 10 and 99. I see instead a list of
negative values.


What version of the product are you using? On what operating system?
I'm using charts4j v1.2, on a windows XP system. Java version is 1.6

Additional details : please see attached screenshot

Original issue reported on code.google.com by [email protected] on 14 Apr 2010 at 7:33

Attachments:

Venn Diagram constructor parameters are in incorrect order

What steps will reproduce the problem?
1. Instantiate a Venn diagram according to the documentation
2.
3.

the constructor reads:
GCharts.newVennDiagrams():

public static VennDiagram newVennDiagram(double circle1Size,
                                         double circle2Size,
                                         double circle3Size,
                                         double abIntersect,
                                         double bcIntersect,
                                         double caIntersect,
                                         double abcIntersect)

I am not getting the expected behavior when I use the function as 
documented above (from javadoc).  Instead, I notice that calling the 
function with the parameters slightly reordered, as follows, shows me the 
venn diagrams I want and expect:

public static VennDiagram newVennDiagram(double circle1Size,
                                         double circle2Size,
                                         double circle3Size,
                                         double abIntersect,
                                         double caIntersect,
                                         double bcIntersect,
                                         double abcIntersect)

Original issue reported on code.google.com by [email protected] on 4 Mar 2010 at 8:02

Maven 2 Support

Are you looking forward to provide Maven 2 support. You may publish your
librarie under public maven 2 repo, woul'd be very helpfull.

tx,
Marcos Maia.

Original issue reported on code.google.com by [email protected] on 17 Nov 2008 at 1:42

Add getter methods for chart data (for unit testing)

I have classes that generate charts, and I'd love to be able to test them by 
querying the generated BarChart classes, etc. Testing by the generated URL is 
possible, but confusing because the URL's are so complex.

Anyway, simply methods to get the chart data and axis labels would be a great 
start.

Original issue reported on code.google.com by keithl on 11 Jun 2010 at 12:13

Add an adapative feature for long extended encoding URLs

Add a Boolean method to the top level class in the GChart hierarchy which
if passed true and extended encoding is chosen, will result in regenerating
the URL string with a simple encoding, if the URL is too long when calling
the toURLString method.


Original issue reported on code.google.com by [email protected] on 12 Dec 2008 at 11:58

Data Points Between 0 and 1

What steps will reproduce the problem?
1. Data values between 0 and 1 cannot be rendered in a proper way. 
Resolution is lost when serializing the data in the URL.  Should be a way
to fix this.

What is the expected output? What do you see instead?
If I have a data range of 0.001 to 0.1, it just looks like a flat line, as
all data points are basically serialized as 0.1.


What version of the product are you using? On what operating system?
Latest version, any OS.


Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 18 Sep 2009 at 8:18

DataUtil scale problem

If the data input array has the same value at all its indexes it results in
min == max for a Preconditions check and an Exception is raised.

java.lang.IllegalArgumentException: min >= max!
    at com.googlecode.charts4j.collect.Preconditions.checkArgument(Unknown Source)
    at com.googlecode.charts4j.DataUtil.scaleWithinRange(Unknown Source)
    at com.googlecode.charts4j.DataUtil.scale(Unknown Source)
    at com.googlecode.charts4j.DataUtil.scale(Unknown Source)



Original issue reported on code.google.com by [email protected] on 13 Aug 2009 at 8:01

LinearGradientFill seems unintuitive

LinearGradientFill seems unintuitive because you can construct it with just
one color basically yielding a solid fill. It seems like 2 colors would be
more appropriate for constructing this class.

Original issue reported on code.google.com by [email protected] on 27 Dec 2008 at 10:51

Data scaling should be able to handle NaNs

      Vector<Float> dataSet = new Vector<Float>();
      dataSet.add(new Float(123));
      dataSet.add(new Float(456));
      dataSet.add(Float.NaN);
      dataSet.add(789f);
            // legal
      Data d1 = Data.newData(dataSet);
      System.out.println(d1);
            // illegal
      Data d2 = DataUtil.scale(dataSet);
      System.out.println(d2);

Original issue reported on code.google.com by [email protected] on 20 May 2009 at 5:04

Support for JfreeChart Eastwood

I want to use the google chart api compatible implementation from
jfreechart called eastwood. See http://www.jfree.org/eastwood/ 
Therefore it is needed to be able to set the url in the ParameterManager.
But the String url is final and there is no getter/setter for that nor is
the ParameterManager accessible.

I made a smallish hack to enable this but im not able to build the
charts4j-gwt.jar as your modifikations are not in trunk currently.

So please review my modifications.

Thanks for this work as it works even in a gwt project of mine perfect.

Greetings

Stefan



Original issue reported on code.google.com by [email protected] on 14 May 2009 at 7:14

Attachments:

AxisLabelsFactory.newNumericRangeAxisLabels

This method requires that the min range <  max range. This assumption is a
bug. There can be numeric ranges in the negative direction.

As a temporary workaround, you can use the other AxisLabelsFactory static
factory methods to achieve similar axis label results.

Original issue reported on code.google.com by [email protected] on 24 Nov 2008 at 8:46

Problems with horizontal / vertical RangeMarker

When I use .addHorizontalRangeMarker or .verticalRangeMarker (in general
RangeMarkers), the url generated is wrong... in particular with the tag
"chm". Because in toString():

1. How decimalFormatter.format() use DecimalFormat, and this uses local
settings by default  (for decimal separator), i think (well... it happened
to me) that is a problem. Because if your local separator is "," (like ES,
CH... ) the url it will be wrong.

2. I think for the url construction, code should us a strict symbols not
the locale. Something like this:

private static final class RangeMarker implements GoogleChartMarker {
...

DecimalFormatSymbols symbols = new DecimalFormatSymbols();
symbols.setDecimalSeparator('.');

/** The decimal formatter. */
private final DecimalFormat   decimalFormatter = new DecimalFormat("0.00",
symbols);


Well, I'm not sure but en my case it run.


Original issue reported on code.google.com by [email protected] on 9 Jan 2009 at 6:59

Comat in a TextMarker

What steps will reproduce the problem?
Plot plot = Plots.newPlot(Data.newData(0, 66.6, 33.3, 100));
plot.addTextMarker("66,6",Color.BLACK,12,1);
LineChart chart = GCharts.newLineChart(plot);


What is the expected output? What do you see instead?
The Text Marker isn't display

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

Please provide any additional information below.
The comat value must be antislashed :
plot.addTextMarker("66\\,6",Color.BLACK,12,1);

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

Iterate over the available default colors

Type: Enhancement

It would be nice if the API would provide a way to get a Set or List of the 
default colors, so creating pies of variable number of slices would be easier 
because one could iterate over the Set or List to get colors for the slices.

Why not using an Enum class instead of static variables for example? Enum can 
be iterable through EnumSet.allOf(Class<E> elementType) 

Original issue reported on code.google.com by [email protected] on 12 Aug 2010 at 2:38

Using integer data without scaling

What steps will reproduce the problem?
1. Want to add an array of integers as my dataset
2. Integers are less than 4095
3. Unable to add this kind of numbers without data scaling

I want to create a chart on a set of integers and don't want to scale them.
But my numbers are greater than 100 (but less than 4095 so extended
encoding can be used)

the library doesnt seem to support this


Original issue reported on code.google.com by [email protected] on 26 Jun 2009 at 6:59

Data scaling "squeezing percentage".

Add a data scaling "squeezing percentage" in case you want to scale the
data in order for the chart to be "squeezed in" by a certain amount from
the edges.

Original issue reported on code.google.com by [email protected] on 9 Dec 2008 at 5:11

Fill Area Patch

I have created a patch for the charts4j project that allows the user of the API 
to be more detailed in 
specifying fill areas, particularly between plots.  The patch is currently 
being used in one of my 
projects, but needs more testing.

Changes include:

AbstractLineChart.java:
Modified the parameterManager.addFillAreaMarker(....) call to include fill type 
and end line.

Curve.java
added accessor and mutator methods to this interface to support fill area type 
and fill area end line.

PlotImpl.java
Added instance variables for fill area type and end line
Modified the PlotImpl(final PlotImpl) constructor to support the 2 new instance 
variables
Added the 4 new accessor/mutators required by the updated Curve interface.

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

Attachments:

Allow custom data range (chds)

It took me a LOT of debugging to find out that charts4j doesn't allow values 
over 100. This is a very odd limitation, considering that the charts API 
supports a custom data range via the chds parameter. At the very least 
Data.MAX_VALUE could be converted to a field instead of a constant.

Original issue reported on code.google.com by keithl on 14 Jun 2010 at 3:55

Wrong Javadoc

What steps will reproduce the problem?
1. Open Javadoc for method XYLineChart.setMargins()

What is the expected output? What do you see instead?
Javadoc says that method arguments are: int leftMargin, int rightMargin, int 
topMargin, int bottomMargin. But actually arguments have sequence: bottom, 
left, right, top

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



Original issue reported on code.google.com by [email protected] on 23 Jun 2010 at 8:11

Comma seperated lists can be optimized

Use this idiom instead:

        int[] array = {1, 2, 3,4,5,6,7};
        StringBuilder builder = new StringBuilder();
        for (int i = 0 ;  i < array.length; i++)
               builder.append(i == 0 ? "" : ",").append(array[i]); 


Original issue reported on code.google.com by [email protected] on 22 Mar 2009 at 5:44

Bar chart spaces

Examine if bar charts have spacing bugs between bars and between groups of
bars.

Original issue reported on code.google.com by [email protected] on 12 Dec 2008 at 9:47

chart.toURLString() does not encode & in labels

What steps will reproduce the problem?

I have a code like this:
slices.add(Slice.newSlice(percent, Color.black, "A&B"));
PieChart chart = GCharts.newPieChart(slices);
img.setUrl(chart.toURLString());

What is the expected output? What do you see instead?
"A&B" slice

"A" slice is created instead

What version of the product are you using? On what operating system?
charts4j-gwt-1.2

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 7 Jun 2009 at 12:34

chm <data point> section doesn't work correctly with value -1

What steps will reproduce the problem?
1. Make shape markers on a large line chart using the following code:
plot.addShapeMarkers(Shape.DIAMOND, Color.BLACK, 4);

2. charts4j creates the following url:

http://chart.apis.google.com/chart?cht=lc&chs=600x200&chm=d,0000FF,0,-
1,4,0&chd=s:gXiVcdlhUagRacRTpfgueZedRZYbgYrfObMTSWfYYPTPUdceTiYpZeorgnlXTTfndecd
Vc
mcVZTXiZptVZZJcPVaQaWeeeXawhdXcbjo0sohfyndxqdgbQQedfZdTUNQNGQUUUMQJdVZfdelljxsn
voXfyroigVTfOVQUOQYRMIKOMNTOTNVKZXQhnZelsqkfnTaackPPaVUSONNOHIHDAHKEDEDACAIE
PEGCPGIDGIIGJHEBEACHCBCAABEFEFFDLLFSHFCHBGEDFHGCEEEHFJDIGNKCIQKGSKFIMJJYhhdeoml
mipnmbfYkRPXWXUieROfcTQKLKKObZcjTncmjgnXrnfXgUglroWfgbmnZbLJHSWPTWMQQVUTQRVQ
QXZYkchsoofjtn7xYSsafkjlw9ddfiaOXxdeTPTafbQaqUiYccRZpYfddir0Wcci0obcYSjhTTSWSePR
Lbnx
eogVdUcaooSbPVaTamujZSRdkhVgWOWmbidd

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

The chart has only about half of its markers.  Based on discussions on the 
google charts group, 
this seems like a known bug of the charts website.

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

charts4j-1.2 on MacOS X

Please provide any additional information below.

Thanks to a very useful poster KeithB on the Google Group, there is a known 
workaround.  If I 
change the CHM section of the above URL , it works fine.  Here is the fixed chm 
section:

chm=d,0000FF,0,0:500:-1,4,0&

And the full, working URL:

http://chart.apis.google.com/chart?cht=lc&chs=600x200&chm=d,0000FF,0,0:500:-
1,4,0&chd=s:gXiVcdlhUagRacRTpfgueZedRZYbgYrfObMTSWfYYPTPUdceTiYpZeorgnlXTTfndecd
Vc
mcVZTXiZptVZZJcPVaQaWeeeXawhdXcbjo0sohfyndxqdgbQQedfZdTUNQNGQUUUMQJdVZfdelljxsn
voXfyroigVTfOVQUOQYRMIKOMNTOTNVKZXQhnZelsqkfnTaackPPaVUSONNOHIHDAHKEDEDACAIE
PEGCPGIDGIIGJHEBEACHCBCAABEFEFFDLLFSHFCHBGEDFHGCEEEHFJDIGNKCIQKGSKFIMJJYhhdeoml
mipnmbfYkRPXWXUieROfcTQKLKKObZcjTncmjgnXrnfXgUglroWfgbmnZbLJHSWPTWMQQVUTQRVQ
QXZYkchsoofjtn7xYSsafkjlw9ddfiaOXxdeTPTafbQaqUiYccRZpYfddir0Wcci0obcYSjhTTSWSePR
Lbnx
eogVdUcaooSbPVaTamujZSRdkhVgWOWmbidd

Thanks very much!
ben.



Original issue reported on code.google.com by [email protected] on 31 Dec 2009 at 7:45

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.