<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Simple d3chart incorrect size and missing axis, legend, gridlines? in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Simple-d3chart-incorrect-size-and-missing-axis-legend-gridlines/m-p/116305#M1702</link>
    <description>&lt;P&gt;Hi unclethan,&lt;/P&gt;

&lt;P&gt;Can you say a little more about what you are trying to do? The d3 chart is supported at this point, but my not be documented as well as the other framework components. Additionally, due to the nature of the APIs of the libraries the d3 chart is wrapping, some of it's features can only be accessed in JavaScript.&lt;/P&gt;

&lt;P&gt;The one extra parameter that is always required on d3 chart but not on other controls is &lt;STRONG&gt;&lt;CODE&gt;type&lt;/CODE&gt;&lt;/STRONG&gt;. To see the complete list of options for this, look at the NVD3 documentation here: &lt;A href="http://nvd3.org/ghpages/examples.html"&gt;http://nvd3.org/ghpages/examples.html&lt;/A&gt; . NVD3 is the library the the framework is using for the d3 chart and the options that can be set on NV charts can be set on the framework's d3 chart. &lt;/P&gt;

&lt;P&gt;Here's a Django example of a d3 chart with type &lt;CODE&gt;discreteBarChart&lt;/CODE&gt;. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;                        {% d3chart id="chart1" managerid="simplesearch1" type="discreteBarChart" %}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Do you have the Splunk Web Framework Toolkit? It has some more samples of using the d3 chart from javascript as well as some other charts you might find serve your purposes. You can download it here: &lt;A href="http://apps.splunk.com/app/1613/"&gt;http://apps.splunk.com/app/1613/&lt;/A&gt; . That might be a good place to get started.&lt;/P&gt;

&lt;P&gt;Good luck.&lt;/P&gt;</description>
    <pubDate>Mon, 28 Oct 2013 16:42:41 GMT</pubDate>
    <dc:creator>magnew_splunk</dc:creator>
    <dc:date>2013-10-28T16:42:41Z</dc:date>
    <item>
      <title>Simple d3chart incorrect size and missing axis, legend, gridlines?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Simple-d3chart-incorrect-size-and-missing-axis-legend-gridlines/m-p/116304#M1701</link>
      <description>&lt;P&gt;I created a search and attached it to a chart and a d3 chart. The regular chart showed the graphs as usual, but the d3chart was being clipped, as well as not having any axis, gridlines or legend.&lt;BR /&gt;
Am I missing something or this feature not ready?&lt;/P&gt;</description>
      <pubDate>Fri, 25 Oct 2013 23:04:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Simple-d3chart-incorrect-size-and-missing-axis-legend-gridlines/m-p/116304#M1701</guid>
      <dc:creator>unclethan</dc:creator>
      <dc:date>2013-10-25T23:04:58Z</dc:date>
    </item>
    <item>
      <title>Re: Simple d3chart incorrect size and missing axis, legend, gridlines?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Simple-d3chart-incorrect-size-and-missing-axis-legend-gridlines/m-p/116305#M1702</link>
      <description>&lt;P&gt;Hi unclethan,&lt;/P&gt;

&lt;P&gt;Can you say a little more about what you are trying to do? The d3 chart is supported at this point, but my not be documented as well as the other framework components. Additionally, due to the nature of the APIs of the libraries the d3 chart is wrapping, some of it's features can only be accessed in JavaScript.&lt;/P&gt;

&lt;P&gt;The one extra parameter that is always required on d3 chart but not on other controls is &lt;STRONG&gt;&lt;CODE&gt;type&lt;/CODE&gt;&lt;/STRONG&gt;. To see the complete list of options for this, look at the NVD3 documentation here: &lt;A href="http://nvd3.org/ghpages/examples.html"&gt;http://nvd3.org/ghpages/examples.html&lt;/A&gt; . NVD3 is the library the the framework is using for the d3 chart and the options that can be set on NV charts can be set on the framework's d3 chart. &lt;/P&gt;

&lt;P&gt;Here's a Django example of a d3 chart with type &lt;CODE&gt;discreteBarChart&lt;/CODE&gt;. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;                        {% d3chart id="chart1" managerid="simplesearch1" type="discreteBarChart" %}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Do you have the Splunk Web Framework Toolkit? It has some more samples of using the d3 chart from javascript as well as some other charts you might find serve your purposes. You can download it here: &lt;A href="http://apps.splunk.com/app/1613/"&gt;http://apps.splunk.com/app/1613/&lt;/A&gt; . That might be a good place to get started.&lt;/P&gt;

&lt;P&gt;Good luck.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Oct 2013 16:42:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Simple-d3chart-incorrect-size-and-missing-axis-legend-gridlines/m-p/116305#M1702</guid>
      <dc:creator>magnew_splunk</dc:creator>
      <dc:date>2013-10-28T16:42:41Z</dc:date>
    </item>
    <item>
      <title>Re: Simple d3chart incorrect size and missing axis, legend, gridlines?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Simple-d3chart-incorrect-size-and-missing-axis-legend-gridlines/m-p/116306#M1703</link>
      <description>&lt;P&gt;I had followed the django bindings tutorial (&lt;A href="http://dev.splunk.com/view/SP-CAAAESP" target="_blank"&gt;http://dev.splunk.com/view/SP-CAAAESP&lt;/A&gt;), and had duplicated the line: {% chart id="chart_sourcetype" managerid="search_chart" type="line" drilldown="none" %}&lt;BR /&gt;
wherein I replaced chart with c3chart and id="chart.. with id="d3chart..&lt;BR /&gt;
Setting the type to "lineChart" has made the graph render properly. &lt;BR /&gt;
It appears that type="line" renders the data lines at a huge scale, without any  gridlines or axis.&lt;BR /&gt;
Thanks for the answer!&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 15:06:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Simple-d3chart-incorrect-size-and-missing-axis-legend-gridlines/m-p/116306#M1703</guid>
      <dc:creator>unclethan</dc:creator>
      <dc:date>2020-09-28T15:06:27Z</dc:date>
    </item>
  </channel>
</rss>

