There is a way of assigning Y formats. Currently there are 5: Number, Time, Date, Metric and Currency. You set this in the pData class by using the function SetYAxisFormat($Format)
What you would have to do to acheive what you want is to modify the pChart.class file and include your own formatter function.
In various places in the pChart.class
file, there is the following section of code:
if ( $DataDescription["Format"]["Y"] == "number" )
$Value = $Value.$DataDescription["Unit"]["Y"];
if ( $DataDescription["Format"]["Y"] == "time" )
$Value = $this->ToTime($Value);
if ( $DataDescription["Format"]["Y"] == "date" )
$Value = $this->ToDate($Value);
if ( $DataDescription["Format"]["Y"] == "metric" )
$Value = $this->ToMetric($Value);
if ( $DataDescription["Format"]["Y"] == "currency" )
$Value = $this->ToCurrency($Value);
To add your own intensity function, after this bit you would need to add:
if ( $DataDescription["Format"]["Y"] == "intensity" )
$Value = $this->ToIntensity($Value);
Then you would need to add your own ToIntensity($Value)
function inside the class:
function ToIntensity($Value)
{
switch($Value) {
case 0:
return "low";
break;
case 1:
return "medium";
break;
case 2:
return "strong";
break;
}
}