canmove, Confirmed users
432
edits
m (User:Dolske/GraphicalMicrosummaries moved to GraphicalMicrosummaries: First draft completed.) |
(Small cleanups and clarifications.) |
||
| Line 17: | Line 17: | ||
= Types of graphics = | = Types of graphics = | ||
This feature would make a small number of | This feature would make a small number of standard, easy-to-use formats (or templates) available to the content provider. The goal is to allow the provider to simply feed in the raw data values and select a display format. For example, "show 50%,25%,25% as a pie chart in red, purple, and yellow." There may be value in providing a more low-level interface to the graphic (such as drawing individual pixels), but the immediate focus is to provide something can can be easily and rapidly adopted. | ||
Here's a few examples of the types of | Here's a few examples of the types of graphic formats that might be available. These have been collected from a variety of online sources: | ||
[[Image:Examples.png|Example of some sparkline-esque graphics found online]] | [[Image:Examples.png|Example of some sparkline-esque graphics found online]] | ||
| Line 31: | Line 31: | ||
** Implement some kind of data-to-graphic plugin scheme (XSLT?) so that new graphical formats can be shared. Maybe the content provider just supplies the raw data, and the user selects/customizes the display format. | ** Implement some kind of data-to-graphic plugin scheme (XSLT?) so that new graphical formats can be shared. Maybe the content provider just supplies the raw data, and the user selects/customizes the display format. | ||
* Is Vista's high-dpi display mode stuff of interest here? We might want to be able to render a graphic in better quality given the ability. (ie, discourage raster-based graphic specifications) | * Is Vista's high-dpi display mode stuff of interest here? We might want to be able to render a graphic in better quality given the ability. (ie, discourage raster-based graphic specifications) | ||
* How much (if any) control should the user be given over the display of the data source? For example, allowing the user to display a pie chart instead of a graph, or a week's worth of data instead of a month. To me, this primarily seems like a server-side thing, or maybe something a 3rd-party extension could expose. | |||
= XML Format = | = XML Format = | ||
| Line 36: | Line 37: | ||
To be determined... | To be determined... | ||
* similar to current microsummary XML generators? | * Use something similar to current microsummary XML generators? | ||
* data | * Source data | ||
** extract from page | ** extract from a page | ||
** raw data feed | ** raw data feed | ||
* | * Display format | ||
** graphic | ** graphic formats | ||
** customized options (colors, range, etc) | ** customized options (colors, range, etc) | ||
| Line 52: | Line 53: | ||
I did some experimentation with changing and expanding the binding's <content>, with mixed results... On the Mac, the application menu bar entries (ie, Bookmarks menu) wouldn't show extra images or style at all (native widget issues?). Entries under the bookmark toolbar would, though. Linux apparently works ok with changed styles (like changing the background color). Windows wasn't tested. Will need some help some people who know these areas to determine how much is possible. | I did some experimentation with changing and expanding the binding's <content>, with mixed results... On the Mac, the application menu bar entries (ie, Bookmarks menu) wouldn't show extra images or style at all (native widget issues?). Entries under the bookmark toolbar would, though. Linux apparently works ok with changed styles (like changing the background color). Windows wasn't tested. Will need some help some people who know these areas to determine how much is possible. | ||
The graphical part would ideally be represented by an <html:canvas> (or maybe even SVG?). I didn't have any luck with a test of that, although it should be possible to have a hidden <canvas> render a data:// URL to display in the XUL's <image>. | The graphical part would ideally be represented by an <html:canvas> (or maybe even SVG?). I didn't have any luck with a test of that, although at worst it should be possible to have a hidden <canvas> render a data:// URL to display in the XUL's <image>. | ||