in my chart I'd like to print one of the horizontal guidelines bold (eg. the 160-line)
How do I do this?
Related
In slate, chart widget have label option that display legend (color dot + label name) at some place of the chart (top, left, bottom, ...).
I notice 2 limitations with this legend on bar chart and I would like to improve them on my Slate apps.
1 issue: label are ordered in the order series appears on the bar chart (from left to right).
2 issue: when segmented and not-segmented data are stacked on the bar chart, label of not-segmented data have wrong color (even if we set series color parameter, and if we don't color attribution is random and change from one loading to the next).
For that reason I decided to produce my on labels in an HTML widget. I get a nice result just with a function that sort label and return a <div class="bp3-label" style="background:${labelColor};">${labelName}<\div> for each label. But I loose the interactivity (this is a convenient function of labels).
Is there a way to transfer this interactivity to my "custom label" and make click on this selecting all relevant bars on my bar chart?
I'm thinking to use slClickEvent and slClickEventValue props on the DIVs to push data relative to the clicked Label in a variable and to make the bar chart "selectedValue" property dependant of this variable.
Is it the best ways ?
Will the bar be highlighted in accorance with chart "selectedValue"?
You're on the correct track here - I often build custom chart legends in an HTML widget to have more control over the appearance and interaction compared to the native legend. If you search on your Foundry instance, you'll even find a folder of Slate apps that are examples of different HTML widget patterns, including one called HTML - Legend that shows some examples with custom CSS and Blueprint styles.
For the interactivity, I'd probably go with using custom HTML selection, rather than custom HTML click events, because with the custom selection, Slate will automatically add a selected class to whatever element you've added the selection to, which will make it easy to update the styling to reflect the selection.
Nothing would stop you from doing this with custom clickEvents instead, but you'd then need to also do some more work to reflect the selection status in the legend or else go without that extra affordance.
If you search your Foundry instance for Line Chart Series Selection with Custom Legend you'll find an example that shows exactly this. In that specific example, the Line "selection" is indicated on the chart by changing the line styling; with a Bar chart, you'd actually want to template (with Handlebars) the selection status of the chart in the </> panel. Then, when the user makes a selection using the legend, the chart will reflect that selection as if they'd chosen by clicking on the bars themselves.
I have a situation in which I have developed a visual chart in SSRS
2012. The chart title is fixed -
Schools Performance in MyCity (County, State, Country)
(Remember, the above title is NOT dynamic, so the situation is easy to handle.)
(1) I need to keep the first part :
Schools Performance in MyCity (left 30 characters) at a font size of 12, Bold
(2) I need to keep the second part starting from the bracket "(" and ending in the other bracket ")" :
(County, State, Country) (all characters after the left 30 characters) at a font size of 8, non-Bold and italic.
I am not able to use multiple title boxes due to space constraint in the chart
I need to get the equivalent of some T-SQL string functions such as CHARINDEX, PATINDEX, etc. in SSRS. I am not too familiar with string functions inside SSRS.
Can anyone provide me a solution on how to achieve my goal?
Any suggestion will be greatly appreciated.
I think the best way here is you delete your chart title and add a textbox above your chart. In this textbox you can write your text with the desired formating (Home Tab > Font). If SSRS rearanges the position of the textbox and the chart, put the chart and the textbox in a rectangle, so they stay where you place them.
As far as I know rich text or formating in the title is not possible.
how to show column chart labels on x-axis 1st is down while 2nd is up?
You cannot choose to display your labels in this manner. This is a result of the automatic formatting that SSRS does to render your chart. All you can do is to try and set the font size large enough to ensure that there is just too little space in your chart width to display all your labels, in which case the report may format your labels like this.
I've searched for an answer to this issue before, and found another way to get what I needed, but was curious if this was actually a possibility. Is there a way to change the font color of a single word in a textbox when the word is part of an expression? I know that if you have a text box with the words "This is red" then you could highlight the word red, and change the font color that way, but when you are using an expression to generate the text, you really don't get that option. Is this maybe doable using custom code?
This can be done in two different ways:
Break the text up into multiple placeholders. You can control the color of each placeholder independently. A textbox can contain as many placeholders as you like.
place the formatting in-line as HTML codes such as "This can have one word in <span style='color:red'>red</span>."
I'm trying to produce a pay check. I will allow the user to setup the position of the items according to their check style.
From my research, it seems that the position of text boxes in SSRS is static and not dynamic. There is no "expression" option for Top/Left. I thought a way to get around this might be to make the text boxes large and overlapping and then set the padding top/left based on expressions to the positions that user has selected. However, it seems that similar to HTML, the text boxes either float around the higher level text boxes or simply drop out of view.
This would be simple if there were a way to tell SSRS not to be concerned with the order of the text boxes and simply display them overlapping, however I don't feel that there is.
Given that, what other options to I have for dynamically positioning text boxes in an SSRS 2008 report? I'm moving right along with this project but I've hit this stumbling block.
SSRS gives you a lot of options for dynamic formatting but Size and Location are fixed. You cannot change this. Overlapping of textboxes does not work in the soft-break renderers like HTML and Excel but does work in hard-break renderers like PDF or TIFF. Have you tried your padding technique and output the report as PDF?
I'm not sure what are going to do in your report, But in similar cases I usually use Space character to position a text. For instance,
IIf(Len(Fields(YourColumn.valu)) > 10, Fields(YourColumn.valu), " ")
Note that you have to ensure it can implemented in your case or not. I'm not sure that it is helpful but as long as the location and width properties are fix this is the only option
Note 2 : I'm using Unbreakable Space character instead of simple Space so that SSRS render it without any problem