How to visualize shapes without grid lines with jzy3d? - jzy3d

I am visualizing several shapes with jzy3d with code like this:
chart.getScene().getGraph().add(new Sphere(pos, 0.05f, 5, Color.GREEN));
The sphere is shown but hslice/vslice lines are shown too. I want simply to show the shapes without these white lines.
What can I do?

I have found the solution myself:
The shapes have the method:
setWireframeDisplayed(false);
which switiches the gridlines off.

Related

Lightview chart histogram like Highcharts Stacked bar

Is there any way I can make a Lightview histogram chart with multiple values per data point, so that it looks like a Highchart stacked bar (https://www.highcharts.com/demo/bar-stacked)?
If not, is there a workaround?
I already overlay-ed two separate histograms, but that does not help, because both start at the bottom and depending on the values some points are hidden.
Unfortunately it's not possible to draw vertical histogram at the moment.

Complex Shape Generation Issue

How can I achieve XAML design for following image? I have main issue with curve that have applied to white fill area. I want to achieve that curve in WPF. I want to generate shape that contains "Group" text.

draw a horizontal dashed line in Jfreechart gantt

Does any one know how it possible to move/draw dashed line at specific position in Gantt chart?
For example i have chart that look like this:
Link to image
and it hard to see where is tasks 1 bars and where task 2 bars and where task 3.
If it possible to draw horizontal lines not in line of 1,2,3 but after whole series to make clear visual separator.
Thanks
You probably want one of the org.jfree.chart.annotations such as CategoryLineAnnotation.

Rectangular shaped Gradient Fill

I'm currently looking to achieve a gradient effect a bit like the rectangle in http://pjnicholson.com/Fireworks/fillgradients.htm
If I compromise a little I can get close to this using RadialGradientBrush... but is there any (not too painful) way to achieve the rectangular effect?
Use an ImageBrush instead and use this image (or a similar image generated using some image editor) for the background of your rectangle.
One solution a colleague and I came with was to derive a new Panel that used a WriteableBitmap as the source for its background.
The panel will give you the dimensions you need to make your WriteableBitmap. Using whatever algorithm you want you can fill it appropriately. In our case, we needed a radial or cone gradient, but the same concept applies.
Additionally, you can create several properties on your new control to specify the colors for the gradient. We adapted a LinearGradientBrush for our needs, but if you're working on just two colors, simple properties may suffice.
I don't have the code handy but will try to find it and post an update later. But the above should get you going.

How do I draw separators?

I am programming in C, using the Windows API, and would like to know how I could draw separators. I would appreciate a code example.
Edit: Here's an illustration.
(source: microsoft.com)
Use a static control/window with the SS_ETCHEDHORZ style (This is what explorer does and should give you the most accurate rendering when it comes to Visual Styles)
I don't suppose you're just looking for LineTo?
For menus and toolbars, generally the separators are drawn for you by the menu and toolbar APIs. For random separators in dialog boxes, etc, like in the picture you added you can just draw a line.
OK, you just want to draw straight lines on the form. That is trivial. When drawing your window, i.e. when processing the WM_PAINT message, simply draw a line using the MoveToEx and LineTo functions.
You insert separators in menus when you insert a normal menu item with a hyphen "-" as text.
Windows will automatically expand them to separators.

Resources