(axid, ref)
| 137 | // {axid} is the axis id, e.g., x2, y, etc. |
| 138 | // {ref} is ['range'|'domain'|'paper'] |
| 139 | function makeAxRef(axid, ref) { |
| 140 | var axref; |
| 141 | switch(ref) { |
| 142 | case 'range': |
| 143 | axref = axid; |
| 144 | break; |
| 145 | case 'domain': |
| 146 | axref = axid + ' domain'; |
| 147 | break; |
| 148 | case 'paper': |
| 149 | axref = 'paper'; |
| 150 | break; |
| 151 | default: |
| 152 | throw 'Bad axis type (ref): ' + ref; |
| 153 | } |
| 154 | return axref; |
| 155 | } |
| 156 | |
| 157 | // shape, annotation and image all take x0, y0, xref, yref, color parameters |
| 158 | // x0, y0 are numerical values, xref, yref are strings that could be passed to |
no outgoing calls
no test coverage detected
searching dependent graphs…