ASE Home Page Products Download Purchase Support About ASE
ChartDirector General
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  How to hide ticks on clickable charts
Posted by Monica on Oct-23-2008 22:29
Hi,

I need a chart that displays multiple lines.  Some lines allow clickable to drill down but some lines are not allow ticks.

Here are the line layers:

Call c.xAxis().setTickOffset(0.5)
Call c.yAxis().setTickDensity(30)
Set layer = c.addLineLayer2()

   Call layer.addDataSet(dataTotalReq, &Hffaa00, "Status Line").setDataSymbol(cd.CircleShape,9)
   Call layer.addDataSet(dataPushlist, &H00ff00, "Pushlist").setDataSymbol( _
    cd.DiamondShape, 11)
   Call layer.addDataSet(dataStandard, &Hff0000, "Standard Distribution").setDataSymbol(cd.Cross2Shape(), 11)
   Call layer.addDataSet(dataLimited, &H4B088A, "Limited Distribution").setDataSymbol(cd.Cross2Shape(), 11)
   Call layer.addDataSet(dataNonDistType, &H81F7F3, "Non-Platform Distribution").setDataSymbol(cd.Cross2Shape(), 11)

Call layer.setLineWidth(3)

Please show me how to make the last 3 lines non-clickable.

Thanks,
Monica

  Re: How to hide ticks on clickable charts
Posted by Peter Kwan on Oct-24-2008 00:10
Hi Monica,

You may put the last 3 lines to a separate layer, and disable the image map for that layer using Layer.setHTMLImageMap.

'Clickable layer
Set layer = c.addLineLayer2()
   Call layer.addDataSet(dataTotalReq, &Hffaa00, "Status Line").setDataSymbol(cd.CircleShape,9)
   Call layer.addDataSet(dataPushlist, &H00ff00, "Pushlist").setDataSymbol( _
    cd.DiamondShape, 11)

'Non-clickable layer
Set nlayer = c.addLineLayer2()
   Call nlayer.addDataSet(dataStandard, &Hff0000, "Standard Distribution").setDataSymbol(cd.Cross2Shape(), 11)
   Call nlayer.addDataSet(dataLimited, &H4B088A, "Limited Distribution").setDataSymbol(cd.Cross2Shape(), 11)
   Call nlayer.addDataSet(dataNonDistType, &H81F7F3, "Non-Platform Distribution").setDataSymbol(cd.Cross2Shape(), 11)
Call nlayer.setLineWidth(3)
Call nlayer.setHTMLIMageMap("{disable}")

Hope this can help.

Regards
Peter Kwan