<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Documentation – チャートのレンダリング</title>
    <link>https://docs.aspose.com/cells/ja/java/chart-rendering/</link>
    <description>Recent content in チャートのレンダリング on Documentation</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>ja</language>
    
	  <atom:link href="https://docs.aspose.com/cells/ja/java/chart-rendering/index.xml" rel="self" type="application/rss+xml" />
    
    
      
        
      
    
    
    <item>
      <title>Java: 希望のページサイズでチャートPDFを作成</title>
      <link>https://docs.aspose.com/cells/ja/java/create-chart-pdf-with-desired-page-size/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/cells/ja/java/create-chart-pdf-with-desired-page-size/</guid>
      <description>
        
        
        &lt;h2 id=&#34;可能な使用シナリオ&#34;&gt;&lt;strong&gt;可能な使用シナリオ&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;Aspose.Cellsを使用して、希望のページサイズでチャートPDFを作成し、ページ内でチャートの配置を指定できます。チャートをページの上部、下部、中央、左側、右側などに配置できます。また、出力チャートはストリーム上やディスク上に作成できます。&lt;/p&gt;
&lt;h2 id=&#34;希望のページサイズでチャートpdfを作成&#34;&gt;&lt;strong&gt;希望のページサイズでチャートPDFを作成&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;次のサンプルコードでは、&lt;a href=&#34;64716912.xlsx&#34;&gt;サンプルExcelファイル&lt;/a&gt;をロードし、ワークシート内の最初のチャートにアクセスし、そのチャートをコード内で指定されたページサイズで中央に水平および垂直方向に配置して、&lt;a href=&#34;64716911.pdf&#34;&gt;出力PDF&lt;/a&gt;に変換します。次のスクリーンショットでは、出力PDFのページサイズがコード内で指定されたように7x7であり、チャートが水平および垂直に中央に配置されていることが示されています。 &lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;create-chart-pdf-with-desired-page-size_1.png&#34; alt=&#34;todo:image_alt_text&#34;&gt;&lt;/p&gt;
&lt;h2 id=&#34;サンプルコード&#34;&gt;&lt;strong&gt;サンプルコード&lt;/strong&gt;&lt;/h2&gt;
&lt;button class=&#34;floating-button&#34; id=&#34;openModalBtn&#34;&gt;AI Document Assistant&lt;/button&gt;

&lt;div class=&#34;modal&#34; id=&#34;modal&#34;&gt;
    &lt;button class=&#34;close-btn&#34; id=&#34;closeModalBtn&#34;&gt;Close&lt;/button&gt;
    &lt;iframe src=&#34;https://products.aspose.ai/cells/chat/document/java?source=docs&#34; frameborder=&#34;0&#34; width=&#34;100%&#34; height=&#34;100%&#34;&gt;&lt;/iframe&gt;
&lt;/div&gt;

&lt;style&gt;
    .floating-button {
        position: fixed;
        bottom: 20px;
        right: 20px;
        background-color: #007bff;
        color: white;
        border: none;
        padding: 15px 20px;
        border-radius: 50px;
        cursor: pointer;
        font-size: 16px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        z-index: 999;
    }

    .modal {
        display: none;
        position: fixed;
        top: 10%;
        left: 10%;
        width: 80%;
        height: 80%;
        background-color: white;
        border: none;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        padding: 20px;
        box-sizing: border-box;
    }

    .close-btn {
        position: absolute;
        top: 10px;
        right: 10px;
        background-color: #f44336;
        color: white;
        border: none;
        padding: 5px 10px;
        cursor: pointer;
        font-size: 16px;
        border-radius: 3px;
    }
&lt;/style&gt;

&lt;script&gt;
    const openModalBtn = document.getElementById(&#39;openModalBtn&#39;);
    const closeModalBtn = document.getElementById(&#39;closeModalBtn&#39;);
    const modal = document.getElementById(&#39;modal&#39;);

    openModalBtn.addEventListener(&#39;click&#39;, function() {
        modal.style.display = &#39;block&#39;;
    });

    closeModalBtn.addEventListener(&#39;click&#39;, function() {
        modal.style.display = &#39;none&#39;;
    });

    window.addEventListener(&#39;click&#39;, function(event) {
        if (event.target === modal) {
            modal.style.display = &#39;none&#39;;
        }
    });
&lt;/script&gt;


      </description>
    </item>
    
    <item>
      <title>Java: SVG形式でチャートを画像に変換</title>
      <link>https://docs.aspose.com/cells/ja/java/converting-chart-to-image-in-svg-format/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/cells/ja/java/converting-chart-to-image-in-svg-format/</guid>
      <description>
        
        
        

&lt;div class=&#34;alert alert-primary&#34; role=&#34;alert&#34;&gt;

&lt;p&gt;スケーラブル・ベクター・グラフィックス（SVG）は、二次元グラフィックス用のXMLベースのベクター画像形式であり、対話性やアニメーションもサポートしています。SVG仕様は、1999年以来世界広範囲のウェブ consortium（W3C） によって開発されたオープンスタンダードです。&lt;/p&gt;
&lt;p&gt;SVG画像とその動作はXMLテキストファイルで定義されています。これにより、検索、索引付け、スクリプト作成、圧縮が可能です。SVG画像はXMLファイルとして任意のテキストエディタで作成および編集できますが、一般的には図形作成ソフトウェアで作成されます。&lt;/p&gt;
&lt;p&gt;Aspose.Cellsは、チャートをBMP、JPEG、PNG、GIF、SVGなどさまざまな形式の画像として保存できます。この記事では、チャートをSVG画像として保存する方法について説明します。&lt;/p&gt;

&lt;/div&gt;

&lt;p&gt;次のサンプルコードは、Aspose.Cellsを使用してチャートをSVG形式の画像に変換する方法を説明しています。コードでは、ソースのExcelファイルをロードし、その後、最初のワークシートで見つかった最初のチャートをSVG形式で保存します。&lt;/p&gt;
&lt;p&gt;次のスクリーンショットは、サンプルコードで作成されたSVG形式の変換されたチャート画像を示しています。&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;出力画像&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;converting-chart-to-image-in-svg-format_1.png&#34; alt=&#34;todo:image_alt_text&#34;&gt;&lt;/p&gt;
&lt;p&gt;SVGはXMLベースの形式であるため、このスクリーンショットに示すように、出力チャート画像をNotepadなどのテキストエディタで開くこともできます。&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;テキストエディタでSCGを出力&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;converting-chart-to-image-in-svg-format_2.png&#34; alt=&#34;todo:image_alt_text&#34;&gt;&lt;/p&gt;
&lt;p&gt;&lt;script type=&#34;application/javascript&#34; src=&#34;https://gist.github.com/aspose-cells-gists/5876dc77e47649b66bdb5deefb4b5639.js?file=Examples-src-main-java-com-aspose-cells-examples-articles-ConvertCharttoImageinSVGFormat-ConvertCharttoImageinSVGFormat.java&#34;&gt;&lt;/script&gt;

&lt;button class=&#34;floating-button&#34; id=&#34;openModalBtn&#34;&gt;AI Document Assistant&lt;/button&gt;

&lt;div class=&#34;modal&#34; id=&#34;modal&#34;&gt;
    &lt;button class=&#34;close-btn&#34; id=&#34;closeModalBtn&#34;&gt;Close&lt;/button&gt;
    &lt;iframe src=&#34;https://products.aspose.ai/cells/chat/document/java?source=docs&#34; frameborder=&#34;0&#34; width=&#34;100%&#34; height=&#34;100%&#34;&gt;&lt;/iframe&gt;
&lt;/div&gt;

&lt;style&gt;
    .floating-button {
        position: fixed;
        bottom: 20px;
        right: 20px;
        background-color: #007bff;
        color: white;
        border: none;
        padding: 15px 20px;
        border-radius: 50px;
        cursor: pointer;
        font-size: 16px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        z-index: 999;
    }

    .modal {
        display: none;
        position: fixed;
        top: 10%;
        left: 10%;
        width: 80%;
        height: 80%;
        background-color: white;
        border: none;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        padding: 20px;
        box-sizing: border-box;
    }

    .close-btn {
        position: absolute;
        top: 10px;
        right: 10px;
        background-color: #f44336;
        color: white;
        border: none;
        padding: 5px 10px;
        cursor: pointer;
        font-size: 16px;
        border-radius: 3px;
    }
&lt;/style&gt;

&lt;script&gt;
    const openModalBtn = document.getElementById(&#39;openModalBtn&#39;);
    const closeModalBtn = document.getElementById(&#39;closeModalBtn&#39;);
    const modal = document.getElementById(&#39;modal&#39;);

    openModalBtn.addEventListener(&#39;click&#39;, function() {
        modal.style.display = &#39;block&#39;;
    });

    closeModalBtn.addEventListener(&#39;click&#39;, function() {
        modal.style.display = &#39;none&#39;;
    });

    window.addEventListener(&#39;click&#39;, function(event) {
        if (event.target === modal) {
            modal.style.display = &#39;none&#39;;
        }
    });
&lt;/script&gt;
&lt;/p&gt;

      </description>
    </item>
    
    <item>
      <title>Java: viewBox属性を使用してチャートをSVG形式にエクスポート</title>
      <link>https://docs.aspose.com/cells/ja/java/export-chart-to-svg-with-viewbox-attribute/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/cells/ja/java/export-chart-to-svg-with-viewbox-attribute/</guid>
      <description>
        
        
        &lt;p&gt;デフォルトでは、チャートをSVG形式でエクスポートするときには、そのXMLに&lt;strong&gt;viewBox&lt;/strong&gt;属性は含まれません。しかし、Aspose.Cellsは&lt;a href=&#34;https://reference.aspose.com/cells/java/com.aspose.cells/imageorprintoptions#SVGFitToViewPort&#34;&gt;&lt;strong&gt;ImageOrPrintOptions.setSVGFitToViewPort()&lt;/strong&gt;&lt;/a&gt;プロパティを提供しており、それを&lt;strong&gt;true&lt;/strong&gt;に設定すると、&lt;strong&gt;viewBox&lt;/strong&gt;属性を含めたSVG形式でチャートをエクスポートできます。&lt;/p&gt;
&lt;p&gt;チャートのSVGをNotepadで開くと、次のような&lt;strong&gt;viewBox&lt;/strong&gt;属性が見つかります。&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-java&#34; data-lang=&#34;java&#34;&gt; &lt;span class=&#34;o&#34;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;svg&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;xmlns&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;http://www.w3.org/2000/svg&amp;#34;&lt;/span&gt;
&lt;span class=&#34;nl&#34;&gt;
&lt;/span&gt;&lt;span class=&#34;nl&#34;&gt;     xmlns:&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;xlink&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;http://www.w3.org/1999/xlink&amp;#34;&lt;/span&gt;

     &lt;span class=&#34;n&#34;&gt;width&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;100%&amp;#34;&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;height&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;100%&amp;#34;&lt;/span&gt;

     &lt;span class=&#34;n&#34;&gt;viewBox&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;0 0 480 288&amp;#34;&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;h2 id=&#34;コードスニペット&#34;&gt;コードスニペット&lt;/h2&gt;
&lt;script type=&#34;application/javascript&#34; src=&#34;https://gist.github.com/aspose-cells-gists/5876dc77e47649b66bdb5deefb4b5639.js?file=Examples-src-main-java-com-aspose-cells-examples-articles-ExportCharttoSVG-ExportCharttoSVG.java&#34;&gt;&lt;/script&gt;

&lt;h2 id=&#34;関連記事&#34;&gt;関連記事&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;https://docs.aspose.com/cells/cells/ja/java/chart-rendering/&#34;&gt;グラフのレンダリング&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://docs.aspose.com/cells/cells/ja/java/export-worksheet-or-chart-into-image-with-desired-width-and-height/&#34;&gt;希望の幅と高さでワークシートまたはチャートを画像にエクスポート&lt;/a&gt;
&lt;button class=&#34;floating-button&#34; id=&#34;openModalBtn&#34;&gt;AI Document Assistant&lt;/button&gt;

&lt;div class=&#34;modal&#34; id=&#34;modal&#34;&gt;
    &lt;button class=&#34;close-btn&#34; id=&#34;closeModalBtn&#34;&gt;Close&lt;/button&gt;
    &lt;iframe src=&#34;https://products.aspose.ai/cells/chat/document/java?source=docs&#34; frameborder=&#34;0&#34; width=&#34;100%&#34; height=&#34;100%&#34;&gt;&lt;/iframe&gt;
&lt;/div&gt;

&lt;style&gt;
    .floating-button {
        position: fixed;
        bottom: 20px;
        right: 20px;
        background-color: #007bff;
        color: white;
        border: none;
        padding: 15px 20px;
        border-radius: 50px;
        cursor: pointer;
        font-size: 16px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        z-index: 999;
    }

    .modal {
        display: none;
        position: fixed;
        top: 10%;
        left: 10%;
        width: 80%;
        height: 80%;
        background-color: white;
        border: none;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        padding: 20px;
        box-sizing: border-box;
    }

    .close-btn {
        position: absolute;
        top: 10px;
        right: 10px;
        background-color: #f44336;
        color: white;
        border: none;
        padding: 5px 10px;
        cursor: pointer;
        font-size: 16px;
        border-radius: 3px;
    }
&lt;/style&gt;

&lt;script&gt;
    const openModalBtn = document.getElementById(&#39;openModalBtn&#39;);
    const closeModalBtn = document.getElementById(&#39;closeModalBtn&#39;);
    const modal = document.getElementById(&#39;modal&#39;);

    openModalBtn.addEventListener(&#39;click&#39;, function() {
        modal.style.display = &#39;block&#39;;
    });

    closeModalBtn.addEventListener(&#39;click&#39;, function() {
        modal.style.display = &#39;none&#39;;
    });

    window.addEventListener(&#39;click&#39;, function(event) {
        if (event.target === modal) {
            modal.style.display = &#39;none&#39;;
        }
    });
&lt;/script&gt;
&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
  </channel>
</rss>
