Modifying a circular chart diagram code












0















I would like to make some modifications for this code



documentclass{beamer} 
usepackage{tikz}
usetikzlibrary{arrows,automata,positioning}
usepackage{verbatim}
usetikzlibrary{calc,shadows}
%begin for smartart
makeatletter
@namedef{color@1}{red!30}
@namedef{color@2}{cyan!30}
@namedef{color@3}{blue!30}
@namedef{color@4}{green!30}
@namedef{color@5}{magenta!30}
@namedef{color@6}{yellow!30}
@namedef{color@7}{orange!30}
@namedef{color@8}{violet!30}
newcommand{smartart}[1]{%
begin{tikzpicture}[every node/.style={align=center}]
foreach gritem [count=xi] in {#1} {globalletmaxgritemxi}
foreach gritem [count=xi] in {#1}
{%
pgfmathtruncatemacro{angle}{360/maxgritem*xi}
edefcol{@nameuse{color@xi}}
node[rectangle,
rounded corners,
thick,
draw=gray,
top color= white,
bottom color=col,
drop shadow,
text width=1.75cm,
minimum width=2cm,
minimum height=1cm,
font=small] (satellitexi) at (angle:2.75cm) {gritem };
}%
foreach gritem [count=xi] in {#1}
{%
pgfmathtruncatemacro{xj}{mod(xi, maxgritem) + 1)}
edefcol{@nameuse{color@xj}}
draw[<-,>=stealth,line width=.1cm,col,shorten <=0.3cm,shorten >=0.3cm] (satellitexj) to[bend left] (satellitexi);
}%
end{tikzpicture}
}%
tikzset{
invisible/.style={opacity=0},
visible on/.style={alt=#1{}{invisible}},
alt/.code args={<#1>#2#3}{%
alt<#1>{pgfkeysalso{#2}}{pgfkeysalso{#3}} % pgfkeysalso doesn't change the path
},
}
newcommand{smartartov}[1]{%
begin{tikzpicture}[every node/.style={align=center}]
foreach gritem [count=xi] in {#1} {globalletmaxgritemxi}
foreach gritem [count=xi] in {#1}
{%
pgfmathtruncatemacro{angle}{360/maxgritem*xi}
edefcol{@nameuse{color@xi}}
node[rectangle,
rounded corners,
thick,
draw=gray,
top color= white,
bottom color=col,
drop shadow={visible on=<xi->},
text width=1.75cm,
minimum width=2cm,
minimum height=1cm,
font=small,
visible on=<xi->] (satellitexi) at (angle:2.75cm) {gritem };
}%
foreach gritem [count=xi] in {#1}
{%
pgfmathtruncatemacro{xj}{mod(xi, maxgritem) + 1)}
pgfmathtruncatemacro{adv}{xi + 1)}
edefcol{@nameuse{color@xi}}
draw[<-,>=stealth,line width=.1cm,col,shorten <=0.3cm,shorten >=0.3cm,
visible on=<adv->] (satellitexj) to[bend left] (satellitexi);
}%
end{tikzpicture}
}%
makeatother
%end for smartart
begin{document}
begin{frame}{Smart art}
begin{center}
smartartov{Low economic growth,Low income,Low saving,Low investment}
end{center}
end{frame}
end{document}


which produces the following animated figure



enter image description here




  1. The cycle to be clockwise not anticlockwise


  2. Double circles as in the lower figure


  3. no animation



to look like



enter image description here









share



























    0















    I would like to make some modifications for this code



    documentclass{beamer} 
    usepackage{tikz}
    usetikzlibrary{arrows,automata,positioning}
    usepackage{verbatim}
    usetikzlibrary{calc,shadows}
    %begin for smartart
    makeatletter
    @namedef{color@1}{red!30}
    @namedef{color@2}{cyan!30}
    @namedef{color@3}{blue!30}
    @namedef{color@4}{green!30}
    @namedef{color@5}{magenta!30}
    @namedef{color@6}{yellow!30}
    @namedef{color@7}{orange!30}
    @namedef{color@8}{violet!30}
    newcommand{smartart}[1]{%
    begin{tikzpicture}[every node/.style={align=center}]
    foreach gritem [count=xi] in {#1} {globalletmaxgritemxi}
    foreach gritem [count=xi] in {#1}
    {%
    pgfmathtruncatemacro{angle}{360/maxgritem*xi}
    edefcol{@nameuse{color@xi}}
    node[rectangle,
    rounded corners,
    thick,
    draw=gray,
    top color= white,
    bottom color=col,
    drop shadow,
    text width=1.75cm,
    minimum width=2cm,
    minimum height=1cm,
    font=small] (satellitexi) at (angle:2.75cm) {gritem };
    }%
    foreach gritem [count=xi] in {#1}
    {%
    pgfmathtruncatemacro{xj}{mod(xi, maxgritem) + 1)}
    edefcol{@nameuse{color@xj}}
    draw[<-,>=stealth,line width=.1cm,col,shorten <=0.3cm,shorten >=0.3cm] (satellitexj) to[bend left] (satellitexi);
    }%
    end{tikzpicture}
    }%
    tikzset{
    invisible/.style={opacity=0},
    visible on/.style={alt=#1{}{invisible}},
    alt/.code args={<#1>#2#3}{%
    alt<#1>{pgfkeysalso{#2}}{pgfkeysalso{#3}} % pgfkeysalso doesn't change the path
    },
    }
    newcommand{smartartov}[1]{%
    begin{tikzpicture}[every node/.style={align=center}]
    foreach gritem [count=xi] in {#1} {globalletmaxgritemxi}
    foreach gritem [count=xi] in {#1}
    {%
    pgfmathtruncatemacro{angle}{360/maxgritem*xi}
    edefcol{@nameuse{color@xi}}
    node[rectangle,
    rounded corners,
    thick,
    draw=gray,
    top color= white,
    bottom color=col,
    drop shadow={visible on=<xi->},
    text width=1.75cm,
    minimum width=2cm,
    minimum height=1cm,
    font=small,
    visible on=<xi->] (satellitexi) at (angle:2.75cm) {gritem };
    }%
    foreach gritem [count=xi] in {#1}
    {%
    pgfmathtruncatemacro{xj}{mod(xi, maxgritem) + 1)}
    pgfmathtruncatemacro{adv}{xi + 1)}
    edefcol{@nameuse{color@xi}}
    draw[<-,>=stealth,line width=.1cm,col,shorten <=0.3cm,shorten >=0.3cm,
    visible on=<adv->] (satellitexj) to[bend left] (satellitexi);
    }%
    end{tikzpicture}
    }%
    makeatother
    %end for smartart
    begin{document}
    begin{frame}{Smart art}
    begin{center}
    smartartov{Low economic growth,Low income,Low saving,Low investment}
    end{center}
    end{frame}
    end{document}


    which produces the following animated figure



    enter image description here




    1. The cycle to be clockwise not anticlockwise


    2. Double circles as in the lower figure


    3. no animation



    to look like



    enter image description here









    share

























      0












      0








      0








      I would like to make some modifications for this code



      documentclass{beamer} 
      usepackage{tikz}
      usetikzlibrary{arrows,automata,positioning}
      usepackage{verbatim}
      usetikzlibrary{calc,shadows}
      %begin for smartart
      makeatletter
      @namedef{color@1}{red!30}
      @namedef{color@2}{cyan!30}
      @namedef{color@3}{blue!30}
      @namedef{color@4}{green!30}
      @namedef{color@5}{magenta!30}
      @namedef{color@6}{yellow!30}
      @namedef{color@7}{orange!30}
      @namedef{color@8}{violet!30}
      newcommand{smartart}[1]{%
      begin{tikzpicture}[every node/.style={align=center}]
      foreach gritem [count=xi] in {#1} {globalletmaxgritemxi}
      foreach gritem [count=xi] in {#1}
      {%
      pgfmathtruncatemacro{angle}{360/maxgritem*xi}
      edefcol{@nameuse{color@xi}}
      node[rectangle,
      rounded corners,
      thick,
      draw=gray,
      top color= white,
      bottom color=col,
      drop shadow,
      text width=1.75cm,
      minimum width=2cm,
      minimum height=1cm,
      font=small] (satellitexi) at (angle:2.75cm) {gritem };
      }%
      foreach gritem [count=xi] in {#1}
      {%
      pgfmathtruncatemacro{xj}{mod(xi, maxgritem) + 1)}
      edefcol{@nameuse{color@xj}}
      draw[<-,>=stealth,line width=.1cm,col,shorten <=0.3cm,shorten >=0.3cm] (satellitexj) to[bend left] (satellitexi);
      }%
      end{tikzpicture}
      }%
      tikzset{
      invisible/.style={opacity=0},
      visible on/.style={alt=#1{}{invisible}},
      alt/.code args={<#1>#2#3}{%
      alt<#1>{pgfkeysalso{#2}}{pgfkeysalso{#3}} % pgfkeysalso doesn't change the path
      },
      }
      newcommand{smartartov}[1]{%
      begin{tikzpicture}[every node/.style={align=center}]
      foreach gritem [count=xi] in {#1} {globalletmaxgritemxi}
      foreach gritem [count=xi] in {#1}
      {%
      pgfmathtruncatemacro{angle}{360/maxgritem*xi}
      edefcol{@nameuse{color@xi}}
      node[rectangle,
      rounded corners,
      thick,
      draw=gray,
      top color= white,
      bottom color=col,
      drop shadow={visible on=<xi->},
      text width=1.75cm,
      minimum width=2cm,
      minimum height=1cm,
      font=small,
      visible on=<xi->] (satellitexi) at (angle:2.75cm) {gritem };
      }%
      foreach gritem [count=xi] in {#1}
      {%
      pgfmathtruncatemacro{xj}{mod(xi, maxgritem) + 1)}
      pgfmathtruncatemacro{adv}{xi + 1)}
      edefcol{@nameuse{color@xi}}
      draw[<-,>=stealth,line width=.1cm,col,shorten <=0.3cm,shorten >=0.3cm,
      visible on=<adv->] (satellitexj) to[bend left] (satellitexi);
      }%
      end{tikzpicture}
      }%
      makeatother
      %end for smartart
      begin{document}
      begin{frame}{Smart art}
      begin{center}
      smartartov{Low economic growth,Low income,Low saving,Low investment}
      end{center}
      end{frame}
      end{document}


      which produces the following animated figure



      enter image description here




      1. The cycle to be clockwise not anticlockwise


      2. Double circles as in the lower figure


      3. no animation



      to look like



      enter image description here









      share














      I would like to make some modifications for this code



      documentclass{beamer} 
      usepackage{tikz}
      usetikzlibrary{arrows,automata,positioning}
      usepackage{verbatim}
      usetikzlibrary{calc,shadows}
      %begin for smartart
      makeatletter
      @namedef{color@1}{red!30}
      @namedef{color@2}{cyan!30}
      @namedef{color@3}{blue!30}
      @namedef{color@4}{green!30}
      @namedef{color@5}{magenta!30}
      @namedef{color@6}{yellow!30}
      @namedef{color@7}{orange!30}
      @namedef{color@8}{violet!30}
      newcommand{smartart}[1]{%
      begin{tikzpicture}[every node/.style={align=center}]
      foreach gritem [count=xi] in {#1} {globalletmaxgritemxi}
      foreach gritem [count=xi] in {#1}
      {%
      pgfmathtruncatemacro{angle}{360/maxgritem*xi}
      edefcol{@nameuse{color@xi}}
      node[rectangle,
      rounded corners,
      thick,
      draw=gray,
      top color= white,
      bottom color=col,
      drop shadow,
      text width=1.75cm,
      minimum width=2cm,
      minimum height=1cm,
      font=small] (satellitexi) at (angle:2.75cm) {gritem };
      }%
      foreach gritem [count=xi] in {#1}
      {%
      pgfmathtruncatemacro{xj}{mod(xi, maxgritem) + 1)}
      edefcol{@nameuse{color@xj}}
      draw[<-,>=stealth,line width=.1cm,col,shorten <=0.3cm,shorten >=0.3cm] (satellitexj) to[bend left] (satellitexi);
      }%
      end{tikzpicture}
      }%
      tikzset{
      invisible/.style={opacity=0},
      visible on/.style={alt=#1{}{invisible}},
      alt/.code args={<#1>#2#3}{%
      alt<#1>{pgfkeysalso{#2}}{pgfkeysalso{#3}} % pgfkeysalso doesn't change the path
      },
      }
      newcommand{smartartov}[1]{%
      begin{tikzpicture}[every node/.style={align=center}]
      foreach gritem [count=xi] in {#1} {globalletmaxgritemxi}
      foreach gritem [count=xi] in {#1}
      {%
      pgfmathtruncatemacro{angle}{360/maxgritem*xi}
      edefcol{@nameuse{color@xi}}
      node[rectangle,
      rounded corners,
      thick,
      draw=gray,
      top color= white,
      bottom color=col,
      drop shadow={visible on=<xi->},
      text width=1.75cm,
      minimum width=2cm,
      minimum height=1cm,
      font=small,
      visible on=<xi->] (satellitexi) at (angle:2.75cm) {gritem };
      }%
      foreach gritem [count=xi] in {#1}
      {%
      pgfmathtruncatemacro{xj}{mod(xi, maxgritem) + 1)}
      pgfmathtruncatemacro{adv}{xi + 1)}
      edefcol{@nameuse{color@xi}}
      draw[<-,>=stealth,line width=.1cm,col,shorten <=0.3cm,shorten >=0.3cm,
      visible on=<adv->] (satellitexj) to[bend left] (satellitexi);
      }%
      end{tikzpicture}
      }%
      makeatother
      %end for smartart
      begin{document}
      begin{frame}{Smart art}
      begin{center}
      smartartov{Low economic growth,Low income,Low saving,Low investment}
      end{center}
      end{frame}
      end{document}


      which produces the following animated figure



      enter image description here




      1. The cycle to be clockwise not anticlockwise


      2. Double circles as in the lower figure


      3. no animation



      to look like



      enter image description here







      tikz-pgf





      share












      share










      share



      share










      asked 3 mins ago









      HanyHany

      1,180416




      1,180416






















          0






          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "85"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f474019%2fmodifying-a-circular-chart-diagram-code%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f474019%2fmodifying-a-circular-chart-diagram-code%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          A CLEAN and SIMPLE way to add appendices to Table of Contents and bookmarks

          Calculate evaluation metrics using cross_val_predict sklearn

          Insert data from modal to MySQL (multiple modal on website)