Group Abstract Group Abstract

Message Boards Message Boards

0
|
6.8K Views
|
1 Reply
|
0 Total Likes
View groups...
Share
Share this post:

Missing something in the code deployment?

Posted 11 years ago
POSTED BY: Ulrich Arndt
Posted 11 years ago

Add a second argument to FormFunction to specify you want an image format:

CloudDeploy[ FormFunction[{{"x","Sprache eingeben:"}->"Language"}, 
    GeoRegionValuePlot[(Tooltip[#1,Column[{CommonName[#1],#1}]]->#2)&@@@(LanguageData[Interpreter["Language"][#x],"Speakers"])]&, 
    "PNG" ] ]

This is actually a bug, FormFunction is supposed to automatically convert Graphics and similar expressions automatically to images, but this will be equivalent to what FormFunction will do.

POSTED BY: Joel Klein
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard