Change marker shape in Splunk line chart - splunk

Though it's weirdly not in the UI, I can enable markers on a line chart with:
<option name="charting.chart.showMarkers">true</option>
However, if there are multiple series, it's nice to have different marker shapes (square, triangle, etc.) on each series. Is this possible to do on a Splunk line chart?

The marker is binary, either it is or it's not. What can be changed is the style of the dash
For example if you have two series antena3 and digi24 you can apply the following to make one series dotted and the other short-dotted:
<option name="charting.fieldDashStyles">{"antena3":"shortDot", "digi24":"shortDash"}</option>
it will look like this:
Complete chart config reference: https://docs.splunk.com/Documentation/Splunk/latest/Viz/ChartConfigurationReference#General_chart_properties

Related

In Splunk , how to set fixed colour for bars in column chart?

In Splunk, how do I set a fixed colour for bars in column chart?
If you are looking at a SimpleXML dashboard, you need to add something like the following. There should be an Edit XML button on your dashboard/chart.
The following example makes the ERROR column always red, the WARN column always yellow and so-on and so-forth.
<option name="charting.fieldColors">
{"ERROR": 0xFF0000, "WARN": 0xFF9900, "INFO":0x009900, "NULL":0xC4C4C0}
</option>
Refer to https://docs.splunk.com/Documentation/Splunk/8.0.5/Viz/BuildandeditdashboardswithSimplifiedXML#Specify_custom_colors_for_fields_in_charts

Is there anyway to solve the space between first and last image when using amp-carousel of type="carousel"?

I'm using amp-carousel "version 0.2" which allows to use autoplay and loop attributes for amp-carousel of type ="carousel"
it appears that the last and first only stacked over each other but all the carousel items are working fine

Scrapy : Parse text between breakpoints

I've come across an HTML like this:
<span itemprop="description">
Colour: Blue
<br>
Fabric: Cotton Silk
<br>
Type Of Work: Printed
<br><br>
Product colour may slightly vary due to photographic lighting sources or your monitor settings.
</span>
I want to parse the text between the breakpoints and get them separately. The desired result is something like:
["Colour: Blue", "Fabric: Cotton Silk", "Product colour may slightly vary due to photographic lighting sources or your monitor settings."]
I've tried
response.xpath('//*[#itemprop="description"]/text()').extract()
but this gives me the whole text together in a single string.
How can I get it separately around the "" tag.
I tried your code and it looks like it is working. I made some adjustments to clean the data extracted through the re() method:
>>> sel.xpath('//span[#itemprop="description"]/text()').re("\s*(.+)\s*")
[u'Colour: Blue', u'Fabric: Cotton Silk', u'Type Of Work: Printed', u'Product colour may slightly vary due to photographic lighting sources or your monitor settings.']
Is that what you need?

How to use special characters on pentaho Dashboard

I'm trying to use special characters on my dashboard using a HTML structure.
It only works if I use HTML Entities such as "& atilde;" (without space) for ã.
But is it the only way to do it? Is there anywhere I can set UTF-8, for example?
I tried to put a META tag setting UTF-8, but I didn't work.
Here's what I'm doying:
Input:
Output:
I need to type: "Alocação de Funcionários"
Notice that I also set a custom noDataMessage_text on Advanced Properties > Extension points of my first Bar Char and, since the message also have special characters on it, using the HTML Entity would certainly not be a good idea.
UPDATE:
I have the same problem when I was looking for my Cubes when I was using the OLAP Selector Wizard
I think your problem will solve. You can use like these.
<h1 style="font-weight: bold;"> Alocação de Funcionários<h1>
or
<h1 style="color:#297385l"> AlocaÇão de Funcionários</h1>
I got these output in my dashboard.
I am thinking your font family is creating some issue. Please copy the exact h1 tag line and paste it in your dashboard let's see.
Thank you.

pygtk: Changing style of <a href>-label

gtk.Label(....) gives a label as a clickable link if the label-text is formatted as a link (text within a "a href-tag"). It is then automatically shown in blue and underlined. (How) can I change the style, e.g. remove the underlining and change the color?
Python 2.7.4, Windows7, gtk 2.24.10.
You can use a span tag to set text attribute.
Suppose label's text is:
GNU
now change it to:
<span foreground="blue" underline="none">GNU</span>
Here is the screenshot: