About Me
Blog roll[ ];
-
14 years ago
-
Saturday, November 29, 2008
Open Flash Chart
Thursday, November 27, 2008
Photoshopping
Tuesday, November 25, 2008
Dumb ATmega8 project
Monday, November 24, 2008
Dumb ATmega8 project, Open Flash Chart
Sunday, November 23, 2008
Dumb ATmega8 project, Open Flash Chart
Thursday, November 20, 2008
|-| @< |< ! |\| 7 0 5 |-|, ATmega8, Photoshopping
Tuesday, November 18, 2008
|-| @< |< ! |\| 7 0 5 |-|
Sunday, November 16, 2008
Google Code, Compaq, Blog, Parallels
Saturday, November 15, 2008
Open Flash Chart 2 - Python API
Compaq Presario 2116AH + Wireless
Thursday, November 13, 2008
Ruby
Ruby seems easy enough. Just went through a tutorial that demonstrated some of the basics. Behaves similarly to Python and shares a structure like any other scripting language though everything is an object in one way or another. This is different to the languages which have integers, characters and booleans as primitives. Getting Rails to run was easy. Rails has a tool that allows you to create a ready-to-go skeleton of a website. The Model-View-Controller organisational thing is something I'll need to understand properly. I'll probably need to spend some time on my website to make it easier to manage and maintain. Right now it's a few folders with a lot of files in each.
A new version of Cherrypy is out and seems to be compatible with Python 2.6 which is nice.
Wednesday, November 12, 2008
The start of a dumb ATmega8 project
Tuesday, November 11, 2008
AVR ATmega8 madness
Sunday, November 9, 2008
Open Flash Chart 2 - Python API
- Filename ofc2.py changed to openFlashChart.py
- Filename ofc2_element.py changed to openFlashChart_varieties.py
- New file created called openFlashChart_elements.py
import openFlashChart
from openFlashChart_varieties import (
Line,
Line_Dot,
Line_Hollow,
Bar,
Bar_Filled,
Bar_Glass,
Bar_3d,
Bar_Sketch,
HBar,
Bar_Stack,
Area_Line,
Area_Hollow,
Pie,
Scatter,
Scatter_Line
)
from openFlashChart_varieties import (
hbar_value,
bar_value,
bar_3d_value,
bar_glass_value,
bar_sketch_value,
bar_stack_value,
pie_value,
scatter_value,
x_axis_labels,
x_axis_label
)
So what exactly has been implemented? Well below is a list of features that have been implemented. Those already existing in the Python library are denoted by a ( - ). Those that have been added by myself are denoted by a ( + ). This list has been compiled by taking the menu lists from the Open Flash Chart website.
Chart types/varieties:
- Line
+ Line Dot
+ Line Hollow
- Bar
+ Bar Filled
+ Bar Glass
+ Bar 3D
+ Bar Sketch
+ Bar Horizontal
- Bar Stack
+ Area
+ Area Hollow
+ Pie
+ Scatter
+ Scatter Line
+ Radar
Chart elements:
- Title
- X axis legend
- Y axis legend
- X axis
- Y axis
+ Y axis (right)
+ X axis labels
- Background colour
+ Click events
+ Floating bars
- Tooltip
To elaborate a bit more, individual data points can be customised for all charts. The same goes for tooltips. This was achieved through the creation of data value objects like bar_value, hbar_value, bar_stack_value, etc. Some of the existing classes were also modified. For example in tooltips, specifying the behaviour of the tooltip with mouse location was added in. Some bugs were spotted in the process. For example, in some functions that accepted boolean values, the conditional evaluation for setting a dictionary value was incorrect. The original test was for the truth of a value rather than the existence of a value. This meant None and False were treated as the same which meant some settings were unable to be set as false. As mentioned before, the interface for adding x axis labels is in the "wrong" place.
I also wrote my own demo.py programme to show off the additions I made. I also got some of the javascript features going as well. Like the calling of a javascript function using on_click and loading new JSON data using load() defined in the ActionScript. (Uses cherrypy)
Differences:
I'm pretty happy with what I've been able to achieve in the last 3 days. Apart from the first to-do item, I think I have implemented all the functionality that Open Flash Chart 2 offers. I've set myself up well to upgrade my use of Open Flash Chart from version 1 to 2 for StockShaping. The only other complaints I'd make (in addition to axes intersection) is the loss of the reload() function defined in ActionScript which would make its own call to fetch new data. Instead, you have to fetch the data yourself and then pass it into Open Flash Chart through the load() function. Also, the file size of Open Flash Chart has ballooned up to about 256 kb from 64 kb which may be of concern for those wanting to view charts on a slow connection. It's just the first request for Open Flash Chart that is important. Subsequent calls should be a lot faster with caching turned on. The last thing is the use of "val" and "value" in the JSON as keywords to mean the same thing. Entries for both keywords are values to plot on the chart. This discrepancy is unnecessary and added to the implementation time and increase in code usage to cater for it.
Friday, November 7, 2008
openSUSE and Open Flash Chart
Wednesday, November 5, 2008
Operating systems
Hackintosh
Tuesday, November 4, 2008
Compaq Presario 5BW472
Vista Ultimate virtualisation; openSUSE 11.0; Open Flash Chart; Down Across and Up
Monday, November 3, 2008
Compaq Presario 5BW472
Sunday, November 2, 2008
Compaq Presario 5BW472
Python / Cherrypy goodness
Saturday, November 1, 2008
The end of lectures
Blog Archive
-
▼
2008
(121)
-
▼
November
(23)
- Open Flash Chart
- Photoshopping
- Dumb ATmega8 project
- Dumb ATmega8 project, Open Flash Chart
- Dumb ATmega8 project, Open Flash Chart
- |-| @< |< ! |\| 7 0 5 |-|, ATmega8, Photoshopping
- |-| @< |< ! |\| 7 0 5 |-|
- Google Code, Compaq, Blog, Parallels
- Open Flash Chart 2 - Python API
- Compaq Presario 2116AH + Wireless
- Ruby
- The start of a dumb ATmega8 project
- AVR ATmega8 madness
- Open Flash Chart 2 - Python API
- openSUSE and Open Flash Chart
- Operating systems
- Hackintosh
- Compaq Presario 5BW472
- Vista Ultimate virtualisation; openSUSE 11.0; Open...
- Compaq Presario 5BW472
- Compaq Presario 5BW472
- Python / Cherrypy goodness
- The end of lectures
-
▼
November
(23)