Project

General

Profile

Dashed lines for a line series chart

Added by PAL I almost 11 years ago

I want to display series as dashed lines for my line series chart. I used WPen and PenStyle.DashLine, but it does not seem to work. Any suggestions? Its urgent.

Thanks,

Amreen


Replies (3)

RE: Dashed lines for a line series chart - Added by Wim Dumon almost 11 years ago

Hi Amreen,

This actually probably depends on what browser (and 2D rendering method) you're using for viewing the chart. The HTML5 canvas did not support dashed lines until in the most recent browsers (and not even all of them do). We recently added this feature to Wt. If you need this, switch to SVG or server-side rendering.

BR,

Wim.

RE: Dashed lines for a line series chart - Added by PAL I almost 11 years ago

Thanks Wim,

I am new to web application development and hence please pardon my ignorance. I will like to know how do we switch to SVG and server-side rendering.

Regards,

Amreen.

RE: Dashed lines for a line series chart - Added by Wim Dumon almost 11 years ago

A Chart is a WPaintedWidget. Call WPaintedWidget.setPreferredRenderingMethod(...).

BR,

Wim.

    (1-3/3)