Skip to content

Activity Charts broken #472

Description

@gitblit

Originally reported on Google Code with ID 176

Hello,

we converted various cvs projects to git repositories. Due to "issues" during the conversion
some fields contained empty strings or newline chars. This breaks the generated javascript
code in the activity page.

Example Source Code:

...
data_39b7080b.setValue(4, 1, 9.0);
data_39b7080b.setValue(5, 0, '
');
data_39b7080b.setValue(5, 1, 6.0);
...


The problematic code parts are located in GooglePieChart.java and GoogleLineChart.java
in the method "appendChart":

...
this.line(sb, MessageFormat.format("{0}.setValue({1,number,0}, 0, ''{2}'');", dName,
i, value.name));
...

"value.name" must not contain any newline chars !

I am not sure if this can also break other things, we only recognized issues on the
activity page by now.

Best Regards
Daniel



Reported by weird.address on 2012-12-07 11:24:37

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions