I am using Telerik Rad Chart in my WPF application to plot some graph.
The problem is when there is no data the chart shows a blurred black image.
Is there any way to get around so that the graph does not show this image when the data is not there.
Or i will be happy if there is some other thing that we can do.
Thanks.
put this below code in .cs(code behind page)
chartname.PlotArea.EmptySeriesMessage.TextBlock.Text = "Data is not available";
this avoid the image and if there is no data it will display the message "data is not available".
Related
In mobile view mapbox renders black image instead of raster image. I suspect this is because of the size of image(3.9 MB), also this is happening mostly on chrome browser for mobile. Please help me find the potential issue here?
This sounds as if you could be running into the No-Data issue, when rendering transparency.
The black background that appears is the part of the raster image that does not contain any data. Generally a raster image is a rectangular grid of pixels. When you are working with data that is not rectangular, there are pixels within the grid that don't contain any data. These pixels are expressed as NoData values and represent the absence of data. GeoTIFFs that are uploaded to Mapbox Studio are displayed as JPEG to save space and make maps load quickly. Since JPEG cannot display transparency, NoData values appear black.
Please see this documentation on how to resolve this:
https://docs.mapbox.com/help/troubleshooting/raster-transparency-issues/#why-black-backgrounds-appear
Is there any way to give different gradient color in each bar of bar chart in pentaho report designer. I'm trying with BeanShall Script but unable to get the gradient top to bottom, also I'm getting same gradient color in all the other bars too.
I'm attaching a image which is my desire result.
Thanks in advance,
Regards,
Ankit Patni
Finally got the solution on my own. Written a blog for the same
http://bineedsui.wordpress.com/2013/12/19/horizontal-gradient-bar-chart-in-pentaho-reporting-designer/
im developing a custom form and i want that the non-client area be transparent. im handling the non client area painting via message number "0x85" and this is what i have tried so far:
Paint using the color "Color.Transparent" -> the non-client area was painted black. If I had used an image of red or black or green, it works perfectly, but transparent = black
Created a transparent image of the size of the form and used the method "myGraphics.DrawImage("img.png")". the background remained black. If I had used an image of red or black or green, it works perfectly also...
Not paint anything (hoping that i just would stay transparent)... not worked
Getting parts of a window transparent requires hardware support, a video adapter feature called layering. Use the form's TransparencyKey property. Set it to an unusual color, like Color.Fuchsia. And draw with that color to get the video adapter to omit the pixels.
I am trying to save images in wpf application, but after saving some reddish tint color is coming on that images and also losing sharpness of those image. I am using PNGBitmapEncoder for that and saving imags in PNG format. I dont know what is happenning.
Anybody Plz give me the solution.. I am trying from so many days. Plz help me regarding this issue.
Thanks in advance
You'll need to post your code and possibly an example of what the incorrect image looks like.
The most likely explanation is that you've got a mis-match between the order of red green & blue pixels in memory vs what the file format is expected, or that the red value is being increased at the expense of the green & blue somehow.
Are you trying to resize the image as well? That might explain the blurriness.
I am working through the above Tutorial from ScottGu located here (http://weblogs.asp.net/scottgu/pages/silverlight-tutorial-part-6-using-user-controls-to-implement-master-detail-scenarios.aspx) and I am trying to figure how when the UserControl loads, the background page is 'grayed' out like that? Where is that code for that?
I am trying to extract that logic into my own Page / UserControl scenario and when I load the UC, the background is still fully 'visible'. Thanks for any advice!
Under the heading Building a Basic Modal Dialog Using a User Control, Scott's post describes:
"The first control above is configured to stretch to take up all of the available space on the screen. Its background fill color is a somewhat transparent gray (because its Opactity is .765 you can see a little of what is behind it). The second control will then be layered on top of this Rectangle control, and take up a fixed width on the screen."
The Rectangle "grays out" the contents of the screen.