Coder Social home page Coder Social logo

googlechartsharp's People

Watchers

 avatar  avatar

googlechartsharp's Issues

High number doesn't display pie chart

What steps will reproduce the problem?
1. Create a pie chart
2. Add data with high numbers (>100000)
3. The url is wrong (lacks of the querystring parameter for the data) and
graph is not displayed

Using current version (1.0.2)

Original issue reported on code.google.com by [email protected] on 4 Jan 2008 at 6:16

Grid for BarCharts causes Exception

According to http://code.google.com/apis/chart/#required_params
the Barchart does support Grids. But I do get an
"InvalidFeatureForChartTypeException" when I try to set one.

Original issue reported on code.google.com by r.baeriswyl on 17 Jun 2008 at 12:42

SSL not supported

Looks like SSL certificate is invalid. I don't have Google's contacts, so maybe 
you could help :-)

What steps will reproduce the problem?
1. https://chart.apis.google.com/chart?cht=lc&chs=150x150&chd=s:AKUeo

What is the expected output? What do you see instead?
Expected image. I get SSL certificate error (certificate not valid for 
subdomain)


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

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 21 Nov 2011 at 6:02

Data in Bar Chart not properly scaled

What steps will reproduce the problem?
Create a BarChart that uses the extended encoding. E.g. create a chart of
200x200 pixels and use values above 63 so that extended encoding is used.

What is the expected output?
A normal bar chart that is properly scaled.

What do you see instead?
A chart with very tiny bars.

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

Please provide any additional information below.
I've created a patch, see the attachment.

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

Attachments:

Support for compound charts

Compound chart types are not currently supported. Possible solutions:
1. Modify current  type BarChart to add compound parameter
2. Add dedicated CompoundChart type
I have looked at the source code and have an implemented partial solution
for BarChart (only supports line types added) 

Original issue reported on code.google.com by [email protected] on 31 Mar 2010 at 1:35

SimpleEncoding Problem (public static string Encode(ICollection<int[]> data))

Hi!

First thank you for this nice converions of Google Charts into C#!

I ve recognized a problem within the simpleencoding algorithm! I get wrong
images back.

You make the choosen encoding type dependet of the max value found in the
dataset. I would suggest to make it dependent of the width and height of
requested image. As for 300 x 250 61 values should be enough detailed.

i would suggest to take the orignial code snipped of the google developers
guide to do the simple encoding.

        public static string SimpleEncoding(int[] valueArray, int maxValue)
        {

            string simpleEncoding =
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
            char[] arr_simpleEncoding = simpleEncoding.ToCharArray();

            string chartData = "";
            for (int i = 0; i < valueArray.Length; i++)
            {
                int currentValue = valueArray[i];
                if (currentValue >= 0)
                {
                    char curr_c =
arr_simpleEncoding[Convert.ToInt32(Math.Round((double)(simpleEncoding.Length -
1) * currentValue / maxValue))];
                    chartData += curr_c;
                }
                else
                {
                    chartData += "_";
                }
            }
            return chartData;
        }

hope this helps.

lg Alex

Original issue reported on code.google.com by [email protected] on 2 Apr 2008 at 11:04

Localization problems with xAxisStepSize

What steps will reproduce the problem?
1. Set the grid to a decimal value : .SetGrid(4.2f, 50);
2. Display the graph on a European computer (or any language using , as a
decimal separator)
3. The grid is not displayed correctly because the URL is damaged

What is the expected output? What do you see instead?
A correct graph, a damaged one.

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

Please provide any additional information below.
The issue is partially fixed for problems on data in
http://code.google.com/p/googlechartsharp/issues/detail?id=13 but it only
fixes the data part, but it can happen on any parameter that allows decimal
values.
One fix would be to replace every .ToString() by a
.ToString(CultureInfo.InvariantCulture) but I preferred changing the thread
culture during the .GetUrl() (less code).

Let me know if you have any questions on this issue.

Original issue reported on code.google.com by [email protected] on 3 Nov 2009 at 11:13

Attachments:

HTMLEncode URL

What steps will reproduce the problem?
1. Create a chart
2. Call GetUrl()
3. Run resulting web page through xhtml-validator

What is the expected output? What do you see instead?
I expect & to get encoded as &amp; to safely use it as src-atrribute in img-tag.

What version of the product are you using? On what operating system?
1.0.2 on Windows XP

Please provide any additional information below.
Please add an optional parameter "bool encodeOutput" to the GetUrl()-method.

Original issue reported on code.google.com by [email protected] on 16 Sep 2010 at 2:02

Support for Tables

What steps will reproduce the problem?
1. Search Documentation for the word Table
2. Note how many results are found

What is the expected output? What do you see instead?
  Would like to be able to use this wrapper to produce a Table (aka Grid Control) as documented at http://code.google.com/apis/ajax/playground/?type=visualization#table

What version of the product are you using? On what operating system?
 Just searching the documentation for Table support before learning investing time to learn this code. Date: 10/19/10 latest version 1.0.2.

Please provide any additional information below.
 I really need to use google chart tables and don't think I'll use it unless it has table support.



Original issue reported on code.google.com by [email protected] on 19 Oct 2010 at 11:36

SetGrid on Bar Chart

When I using Bar Chart and put SetGrid directive, the site does not open
and show a error.

I changed the if to:

            if (!(chartType == ChartType.LineChart || chartType ==
ChartType.ScatterPlot || chartType == ChartType.BarChart))
            {
                throw new InvalidFeatureForChartTypeException();
            }


PS.: Have 2 places to change!

Rafael Amorim
SharpCode User Group 
Operational Admin
www.sharpcode.com.br

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

Can not override what type of encoding should library use

What steps will reproduce the problem?
1. Required API that helps to specify exactly which encoding I want to use.

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

Please provide any additional information below.
Found issue: when used not "Text encoding" chart do not scale chart
properly. Required API that helps to use workaround;

Original issue reported on code.google.com by [email protected] on 14 May 2008 at 5:53

New Example

Hi this is my example and patch file
http://chart.apis.google.com/chart?cht=lc&chs=700x200&chd=t:48,57,53,49,40,5,3,2
1,41,100,60,75&chtt=Annual+Summary&chts=000000,14&chxt=x,y&chxl=0:|January|Febru
ary|March|April|May|June|July|August|September|October|November|December|1:&chxp
=&chxr=1,0,86552&chxs=&chm=B,EFEFEF,0,0,0



Original issue reported on code.google.com by [email protected] on 26 Jul 2008 at 8:55

Attachments:

Friendlier version of SetDatasetColors

I have to say that I don't like hex at all.
Therefore, I create a new version of SetDatasetColors which use Color array
as parameter instead of a series of hex string.

Well, this is the code, hope it useful for some one ^^ (me, at least).

/// <summary>
/// Set the color for each dataset, match colors to datasets by
/// specifying them in the same order the datasets were added to the
/// chart.
/// </summary>
/// <param name="datasetColors">an array of <see
cref="System.Drawing.Color"/></param>
public void SetDatasetColors(Color[] datasetColors)
{
    string[] colorHexArray = new string[datasetColors.Length];

    for (int i = datasetColors.Length - 1; i >= 0; i--)
    {
        colorHexArray[i] = ColorToHex(datasetColors[i]);
    }

    SetDatasetColors(colorHexArray);
}

/// <summary>
/// Convert <see cref="System.Drawing.Color"/> value to Hex value.
/// </summary>
/// <param name="color">A value of type <see cref="System.Drawing.Color"/>
which you want to convert in Hex value.</param>
/// <returns>Hex String</returns>
private string ColorToHex(Color color)
{
    return String.Format("{0:X2}{1:X2}{2:X2}", color.R, color.G, color.B);
}

Original issue reported on code.google.com by [email protected] on 5 Apr 2008 at 4:59

Regional settings error

Please, in ChartData.cs change the ToString() call in the function 
textEncode(float[] data) with this: 
value.ToString(System.Globalization.CultureInfo.InvariantCulture.NumberFormat) 
for work in systems with a different decimal separator.

Thank you

Original issue reported on code.google.com by [email protected] on 27 Dec 2010 at 9:32

URL is damaged using float values on swedish computers

What steps will reproduce the problem?
1. Using float[] with decimal values in chart
2. Swedish (or other) i18n rules

Expected output is for example 1.10, but as we Swedes use the decimal
separation character "," (instead of the expected ".") the output is "1,10".

This screws up the URL as each float value is separated with a ",".


Using the 1.0.2 version (sourcecode) on Windows XP with .NET 3.5 (Swedish).

Fixed the problem by adding a .Replace(',','.') call after the ToString.
ChartData.cs, line 122:

chartData += value.ToString().Replace(',', '.') + ",";

However, unsure how to fix this to be culture non-specific.

Cheers!

Original issue reported on code.google.com by [email protected] on 16 Sep 2008 at 8:12

X-axis scaling on stacked horizontal bar graph

I've been having trouble scaling a stacked bar graph to the correct size
and getting it to match the values on the x-axis.  The x-axis data labels
show a max of 100 despite my data going up to 750, and the bars are only
about 1/4 as wide as the chart.  What's also strange is that if I take the
same data and use a float data type, then the bars are too wide and are
cropped off the right side of the image.

<code>
string GenerateChart_Int()
    {
        BarChart Graph = new BarChart(500, 500,
BarChartOrientation.Horizontal, BarChartStyle.Stacked);
        int[] data1 = new int[] { 668, 306, 158, 130, 100, 92, 80, 76, 65,
55, 45, 31, 21 };
        int[] data2 = new int[] { 68, 50, 18, 10, 12, 9, 17, 6, 9, 5, 5, 4,
1 };
        string[] labels = new string[] { "A", "B", "C", "D", "E", "F", "G",
"H", "I", "J", "K", "L", "M" };

        List<int[]> datasets = new List<int[]>();
        datasets.Add(data1);
        datasets.Add(data2);
        Graph.SetTitle("Chart Title");
        Graph.SetBarWidth(25);
        ChartAxis yAxis = new ChartAxis(ChartAxisType.Left, labels);
        ChartAxis xAxis = new ChartAxis(ChartAxisType.Bottom);
        Graph.AddAxis(yAxis);
        Graph.AddAxis(xAxis);
        Graph.SetDatasetColors(new string[] { "88AAEE", "FF3333" });
        Graph.SetData(datasets);
        return Graph.GetUrl();
    }
</code>

This generates this graph - <a
href="http://chart.apis.google.com/chart?cht=bhs&chs=500x500&chd=e:KcEyCeCCBkBcB
QBMBBA3AtAfAV,BEAyASAKAMAJARAGAJAFAFAEAB&chtt=Chart+Title&chco=88AAEE,FF3333&chx
t=y,x&chxl=0:|A|B|C|D|E|F|G|H|I|J|K|L|M|1:&chxp=&chxr=&chxs=&chbh=25">output</a>

If I use the same data with the 'float' data type, it generates this graph
<a
href="http://chart.apis.google.com/chart?cht=bhs&chs=500x500&chd=t:668,306,158,1
30,100,92,80,76,65,55,45,31,21|68,50,18,10,12,9,17,6,9,5,5,4,1&chtt=Chart+Title&
chco=88AAEE,FF3333&chxt=y,x&chxl=0:|A|B|C|D|E|F|G|H|I|J|K|L|M|1:&chxp=&chxr=&chx
s=&chbh=25">floatoutput</a>

Two separate graphs, same data, both useless.  I just want the width of the
image to match the width of the data and have it match the labels on the
x-axis.  Any ideas?

Kris S.

Original issue reported on code.google.com by [email protected] on 5 Feb 2008 at 8:38

c# windows form & google api v3

hi all, i use c# windows form application
& i want to change latitude & longitude in google api v3 JavaScript code

var myLatlng = new google.maps.LatLng(30.050144, 31.240042);

according to
C# form latitude text box & longitude text box entered value
I can display the page in webbrowser control but it's static
how can i do this???

Original issue reported on code.google.com by [email protected] on 2 May 2012 at 11:38

Not able to create reference

What steps will reproduce the problem?
1. create a simple windows application
2. try to use GoogleChartSharp
3. once i buid the project it is giving me an error as reference missing.

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

expeted out with out any errors i sould be able to use this name space.

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

Please provide some update....

Thanks in advance...

Krishna


Original issue reported on code.google.com by [email protected] on 19 Dec 2009 at 1:11

Data point labels support

What steps will reproduce the problem?
I want create a chart with Data point 
labels(http://code.google.com/apis/chart/labels.html#data_point_labels)

What is the expected output?
I want the chart like this:
http://chart.apis.google.com/chart?
cht=lc&chs=540x280&chd=e:nojQe5hcT.GiFd8WZchFV0&chtt=Report
+Download+Pre+Day(Last+11+days)&chxt=y,x&chxl=0:|1:|2009-12-
21|2009-12-22|2009-12-23|2009-12-24|2009-12-25|2009-12-
26|2009-12-27|2009-12-28|2009-12-29|2009-12-30|2009-12-
31&chxp=&chxr=0,0,176|1,0,11&chxs=&chg=10,30&chm=o,0066FF,0,
-
1,6|B,76A4FB,0,0,0|t109,000000,0,0,10|t97,000000,0,1,10|t85,000000,0,
2,10|t92,000000,0,3,10|t55,000000,0,4,10|t18,000000,0,5,10|t15,00000
0,0,6,10|t166,000000,0,7,10|t70,000000,0,8,10|t91,000000,0,9,10|t60,0
00000,0,10,10

What do you see instead?
Can not find "DataPointLabels" support

What version of the product are you using? On what operating system?
1.0.2,windows xp

Please provide any additional information below.
I create a new class DataPointLabel, and modify the Chart.
See the attachments.



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

Attachments:

Charts Demensions not supported

What steps will reproduce the problem?
1. try to setup throw library classes chart dimensions (&chds=)

What is the expected output? What do you see instead?
2. Nothing found

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

Original issue reported on code.google.com by [email protected] on 14 May 2008 at 5:48

Internal Text Formatting Invalid in German Culture

Add the following sequence to a char: new [] { 1.5 } and switch the 
currentculture to "DE-de". You will get two datapoints because then umber 1.5 
gets encoded as 1,5.

The fix for this is to find all places where you convert a number (int or 
double) to a string and do it like this: 
1.5.ToString(CultureInfo.InvariantCulture)

You also need to find places where ints are converted because users can 
configure custom integer formatting in their windows and add 
thousands-separators and the like.

Original issue reported on code.google.com by [email protected] on 30 Jan 2012 at 12:51

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.