Monday, December 12, 2011

How to Encrypt a Lotus Notes Mail and Archives


File -> Application -> Properties ->  Click on 'Encryption Settings'

(Views expressed in this blog are mine and mine only, and does not represent any of my employer's views. )












Saturday, December 10, 2011

Dojo Column Charting.

Dojo charting, using dojo-release-1.7.0

An Interesting link I found useful during this development.
http://www.ibm.com/developerworks/web/library/wa-moredojocharts/?ca=drs-


A very simple  Bar Chart:

"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
 <br>
App1    dojo.addOnLoad(function() {
        var c = new dojox.charting.Chart2D("chartOne");
        c.addPlot("default", {
            type: "Bars",
            tension: 3,
            gap:2
        });

        c.addAxis("x", {
            fixLower: "major",
            fixUpper: "major",
            majorStep:5,
            minorTickStep:1
        });
  // minorTickStep = 1 will space the x axis steps.
  // major step means all the steps on the 'x' axis.

        c.addAxis("y", {
            vertical: true,
            fixLower: "major",
            fixUpper: "major",
            natural:true,
            majorTick: { length : 3 },
            labels: [
      {value: 0, text: ""},
      {value: 1, text: "January"},
      {value: 2, text: "February"},
      {value: 3, text: "March"},
      {value: 4, text: "April"},
      {value: 5, text: "May"}
    ], min: 0 });

        c.setTheme(dojox.charting.themes.Wetland);

        c.addSeries("Series A", [1, 2, 0.5, 1.5, 1, 2.8, 0.4]);
        c.render();



Now, some experiments:
let's comment the 'gap:2 ' above in the declaration and see what happens:


Now, let's comment the minorTickStep:1 and see what happens.



Now, comment the "majorStep:5" , that means the table will show the highest value in the series i.e '3' and NOT 5.